import { TocEntry, TocRoot } from "../djot/document.ts"; type Props = { toc: TocRoot; }; export default function TableOfContents({ toc }: Props) { return ( 目次 {toc.entries.map((entry, index) => ( ))} ); } function TocEntryComponent({ entry }: { entry: TocEntry }) { return (