import type { TableOfContentsCategory, TableOfContentsCategoryEntry, } from "../data/docs.ts"; export function SidebarCategory(props: { category: TableOfContentsCategory; }) { const { title, href, entries } = props.category; return (
  • {title} {entries.length > 0 && ( )}
  • ); } export function SidebarEntry(props: { entry: TableOfContentsCategoryEntry; }) { const { title, href } = props.entry; return (
  • {title}
  • ); }