import { QuartzComponentConstructor, QuartzComponentProps } from "./types" import legacyStyle from "./styles/legacyToc.scss" import modernStyle from "./styles/toc.scss" import { classNames } from "../util/lang" // @ts-ignore import script from "./scripts/toc.inline" interface Options { layout: "modern" | "legacy" } const defaultOptions: Options = { layout: "modern", } function TableOfContents({ fileData, displayClass }: QuartzComponentProps) { if (!fileData.toc) { return null } return (