--- import type { MarkdownHeading } from 'astro' type Props = { headings: MarkdownHeading[] } const { headings } = Astro.props ---
Outline { headings.map(({ slug, text, depth }) => (
{text}
)) }