Function
visibleKind
(node: FileNode, kinds?: ReadonlyMap<string, Kind>, marks?: Set<string>)
Source from the content-addressed store, hash-verified
| 79 | } |
| 80 | |
| 81 | const visibleKind = (node: FileNode, kinds?: ReadonlyMap<string, Kind>, marks?: Set<string>) => { |
| 82 | const kind = kinds?.get(node.path) |
| 83 | if (!kind) return |
| 84 | if (!marks?.has(node.path)) return |
| 85 | return kind |
| 86 | } |
| 87 | |
| 88 | const buildDragImage = (target: HTMLElement) => { |
| 89 | const icon = target.querySelector('[data-component="file-icon"]') ?? target.querySelector("svg") |
Tested by
no test coverage detected