---
import CommunityLinks from "./CommunityLinks.astro";
type Heading = {
depth: number;
text: string;
slug: string;
};
const { headings } = Astro.props;
---
Table of Contents
{
headings.map((heading: Heading, index: number) => {
// if (heading.depth === 1) return;
const margin = `${heading.depth - 0.8}rem`;
return (
-
{heading.text.replace("🔗", "")}
);
})
}