MCPcopy Create free account
hub / github.com/IABTechLab/uid2docs / DocSidebarItem

Function DocSidebarItem

src/theme/DocSidebarItem/index.tsx:8–21  ·  view source on GitHub ↗
({
  item,
  ...props
}: Props)

Source from the content-addressed store, hash-verified

6import type { Props } from "@theme/DocSidebarItem";
7
8export 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected