({
item,
...props
}: Props)
| 6 | import type { Props } from "@theme/DocSidebarItem"; |
| 7 | |
| 8 | export default function DocSidebarItem({ |
| 9 | item, |
| 10 | ...props |
| 11 | }: Props): JSX.Element | null { |
| 12 | switch (item.type) { |
| 13 | case "category": |
| 14 | return <DocSidebarItemCategory item={item} {...props} />; |
| 15 | case "html": |
| 16 | return <DocSidebarItemHtml item={item} {...props} />; |
| 17 | case "link": |
| 18 | default: |
| 19 | return <DocSidebarItemLink item={item} {...props} />; |
| 20 | } |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected