({ depth, children }: Props)
| 7 | } |
| 8 | |
| 9 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected