<script lang="ts">
    import type { ExtendedEvent } from "@components/types/event";
    import { Tabs, TabsList, TabsTrigger, TabsContent } from "@components/ui/tabs";
    import GroupPhaseGenerator from "./gens/group/GroupPhaseGenerator.svelte";
    let {
        data,
    }: {
        data: ExtendedEvent;
    } = $props();
</script>

<div class="m-4">
    <Tabs value="group">
        <TabsList class="mb-4">
            <TabsTrigger value="group">Gruppenphase</TabsTrigger>
            <TabsTrigger value="ko">K.O. Phase</TabsTrigger>
        </TabsList>
        <TabsContent value="group">
            <GroupPhaseGenerator {data} />
        </TabsContent>
    </Tabs>
</div>
