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

Function Main

site/ui/Main.tsx:6–31  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4import {Home} from './Home.tsx';
5
6export const Main: NoPropComponent = () => {
7 const pageNode = usePageNode();
8 const rootNode = useRootNode();
9 const isSingle = useIsSingle();
10 const isHome = pageNode == rootNode;
11
12 return (
13 <main>
14 {isHome ? (
15 <Home />
16 ) : (
17 <>
18 <nav>
19 <ul>
20 <NodeNavigation node={isSingle ? pageNode : rootNode} />
21 </ul>
22 </nav>
23 <article>
24 <ArticleInner />
25 </article>
26 <aside />
27 </>
28 )}
29 </main>
30 );
31};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…