--- interface Props { headings: { depth: number; text: string; id: string }[]; } const { headings } = Astro.props; --- { headings.length > 0 && (
ยง table of contents
) }