<template>
  <NuxtLayout name="default">
    <div class="min-h-[calc(100vh-9rem)] w-full">
      <div class="container mx-auto py-12 px-2 min-h-[50vh] flex flex-col gap-2">
        <NuxtLink v-for="item in sitemap" :key="item.path" :to="`${item.path}`">
          {{ item.path }} {{ item.hasCollection ? "(...)" : "" }}
        </NuxtLink>
      </div>
    </div>
  </NuxtLayout>
</template>

<script setup lang="ts">
import calculateSitemap from "~/composables/calculateSitemap";

const sitemap = await calculateSitemap();
</script>
