---
// TOC comes in as a prop from the consuming page (h2/h3 headings from the
// markdown content, excluding ... blocks).
export interface TocItem {
/** 2 or 3 (h2/h3); h3 gets the ms-3 indent */
level: number
text: string
/** anchor without '#', e.g. "default-markup" */
id: string
}
interface Props {
toc?: TocItem[]
}
const { toc = [] } = Astro.props
// shared/data/illustrations.json has 100 entries.
const illustrationsCount = 100
---
{
toc.length > 0 && (
Table of Contents
)
}
{illustrationsCount} sleek illustrations for your startup's visual identity.