<script setup lang="ts">
import { ScrollArea } from '@/components/ui/scroll-area';

definePageMeta({
    middleware: ['authenticated'],
});

const store = useWarrenStore();
</script>

<template>
    <ScrollArea class="h-full w-full">
        <div class="flex flex-row gap-2">
            <NuxtLink
                v-for="(warren, uuid) in store.warrens"
                :key="uuid"
                :to="`/warrens/${uuid}`"
            >
                <Button class="h-12 w-44" variant="outline" size="lg">
                    <Icon name="lucide:folder-root" />
                    <span clas="truncate">{{ warren.name }}</span>
                </Button>
            </NuxtLink>
        </div>
    </ScrollArea>
</template>
