<script setup lang="ts">
import type { TocLink } from '@nuxt/content';

const props = defineProps<{
    link: TocLink
}>()
</script>

<template>
<li class="mt-1 mb-1"><a :href="`#${link.id}`">{{ link.text }}</a></li>
<ul class="ml-2 mt-1 mb-1">
    <BlogTocLink v-for="child in link.children" :link="child" />
</ul>
</template>
