MCPcopy Create free account
hub / github.com/Linen-dev/linen.dev / Header

Function Header

apps/web/ui/Message/Header/index.tsx:9–26  ·  view source on GitHub ↗
({ depth, children }: Props)

Source from the content-addressed store, hash-verified

7}
8
9export default function Header({ depth, children }: Props) {
10 switch (depth) {
11 case 1:
12 return <h1 className={styles.h1}>{children}</h1>;
13 case 2:
14 return <h2 className={styles.h2}>{children}</h2>;
15 case 3:
16 return <h3 className={styles.h3}>{children}</h3>;
17 case 4:
18 return <h4 className={styles.h4}>{children}</h4>;
19 case 5:
20 return <h5 className={styles.h5}>{children}</h5>;
21 case 6:
22 return <h6 className={styles.h6}>{children}</h6>;
23 default:
24 return <>{children}</>;
25 }
26}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected