MCPcopy Create free account
hub / github.com/tinyplex/tinybase / NavJson

Function NavJson

site/ui/NavJson.tsx:21–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19};
20
21export const NavJson: NoPropComponent = (): any => {
22 const rootNode = useRootNode();
23 const pageNode = usePageNode();
24 const isSingle = useIsSingle();
25
26 return (
27 <code
28 dangerouslySetInnerHTML={{
29 __html: JSON.stringify(getNav(rootNode, pageNode, isSingle)),
30 }}
31 />
32 );
33};
34
35const getNav = (node: Node, pageNode: Node, isSingle: boolean): NavNode => {
36 const navNode: NavNode = {

Callers

nothing calls this directly

Calls 1

getNavFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…