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