--- interface Heading { depth: number; slug: string; text: string; } interface Props { headings: Heading[]; } const { headings } = Astro.props; --- Table of Content {headings.map((h) => ( {h.text} ))}
Table of Content