import type { Editor as TiptapEditor } from "@tiptap/core"; import { Sun, Moon, X } from "lucide-react"; import { TableOfContents } from "./TableOfContents"; interface Props { open: boolean; editor: TiptapEditor | null; scrollContainer: HTMLElement | null; autoCollapse: boolean; theme: "light" | "dark"; onClose: () => void; onToggleTheme: () => void; } /** * Full-height drawer shown on narrow viewports when the user hits the * hamburger button in the top bar. Hosts the table of contents and the * theme toggle (there is no room for the desktop chrome at that width). */ export function MobileTocSidebar({ open, editor, scrollContainer, autoCollapse, theme, onClose, onToggleTheme, }: Props) { return ( <>
); }