Skip to content
Entangle UI v0.13.0

getFileIconKind

getFileIconKind(node, expanded?): FileIconKind

Defined in: src/components/controls/FileTree/fileTreeIcons.ts:145

Resolves the icon kind for a node. Folders return folder-open when expanded, else folder. Files use the explicit ext when provided, falling back to the extension parsed from name.

Pick<FileTreeNode, "kind" | "name" | "ext">

boolean = false

FileIconKind