--- // Auto-generated TOC from MDX headings - Left sidebar interface Props { headings: Array<{ depth: number; slug: string; text: string; }>; } const { headings } = Astro.props; // Filter to only show h1 and h2 const tocHeadings = headings.filter((h) => h.depth <= 2); --- { tocHeadings.length > 0 && ( ) }