--- interface TOCItem { id: string; text: string; level: number; } interface Props { items: TOCItem[]; } const { items } = Astro.props; --- {items.length > 0 && ( )}