MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / treeRenderEntryPath

Function treeRenderEntryPath

packages/app-core/src/components/Sidebar.tsx:3465–3469  ·  view source on GitHub ↗
(entry: TreeRenderEntry)

Source from the content-addressed store, hash-verified

3463}
3464
3465function treeRenderEntryPath(entry: TreeRenderEntry): string | null {
3466 if (entry.type === "note") return entry.note.path;
3467 if (entry.type === "asset") return entry.asset.path;
3468 return null;
3469}
3470
3471// ---------------------------------------------------------------------------
3472// Virtualized leaf-list rendering

Callers 3

WindowedLeafEntriesFunction · 0.85
FolderTreeContentsFunction · 0.85
SubTreeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected