import { addCollection } from "@iconify/react" import { icons as fluentIcons } from "@iconify-json/fluent" import { navFolderIconColorFromBgClass } from "@/lib/label-pill-contrast" addCollection(fluentIcons) export { navFolderIconColorFromBgClass } /** Icône Fluent dossier (sidebar + fil d’Ariane). */ export function folderTreeNavIconName( hasChildren: boolean, open: boolean ): string { if (!hasChildren) return "fluent:folder-20-filled" return open ? "fluent:folder-open-20-filled" : "fluent:folder-list-20-filled" } /** Fil d’Ariane : toujours la variante fermée. */ export function folderTreeNavIconNameClosed(hasChildren: boolean): string { return folderTreeNavIconName(hasChildren, false) } export const FOLDER_SECTION_ICON = "fluent:folder-mail-20-filled"