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

Function Header

site/ui/Header.tsx:5–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import {usePackageData} from './BuildContext.tsx';
4
5export const Header: NoPropComponent = () => {
6 const {version} = usePackageData();
7 const rootNode = useRootNode();
8
9 return (
10 <header>
11 <a href="/">
12 <img src="/favicon.svg" alt="TinyBase logo" />
13 <span>
14 TinyBase
15 {version.includes('beta') && (
16 <>
17 {' '}
18 <em>&beta;</em>
19 </>
20 )}
21 </span>
22 </a>
23 <nav>
24 <ul>
25 <NodeChildren node={rootNode} />
26 <li>
27 <a href="https://github.com/tinyplex/tinybase">GitHub</a>
28 </li>
29 </ul>
30 </nav>
31 <span id="dark" />
32 </header>
33 );
34};

Callers

nothing calls this directly

Calls 1

usePackageDataFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…