import { TocEntry, TocRoot } from "../djot/document.ts"; type Props = { toc: TocRoot; }; export default function TableOfContents({ toc }: Props) { return ( ); } function TocEntryComponent({ entry }: { entry: TocEntry }) { return (
  • {entry.text} {entry.children.length > 0 && ( )}
  • ); }