MCPcopy Create free account
hub / github.com/fontsource/fontsource / nodeKey

Function nodeKey

website/app/components/docs/LeftSidebar.tsx:34–38  ·  view source on GitHub ↗
(node: PageTree.Node)

Source from the content-addressed store, hash-verified

32};
33
34const nodeKey = (node: PageTree.Node) =>
35 node.$id ??
36 (node.type === 'page'
37 ? node.url
38 : `${node.type}-${String(node.name ?? node.type)}`);
39
40const containsCurrentPage = (
41 node: PageTree.Node,

Callers 2

SidebarNodesFunction · 0.85
LeftSidebarFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected