--- import { useTranslations } from "@i18n/utils"; import type { MarkdownHeading } from "astro"; const t = useTranslations(Astro.url); type Props = { headings: MarkdownHeading[]; }; const { headings } = Astro.props; ---
{t("toc.title")}
{ headings.map((heading) => { return ( {heading.text} ); }) }