<script context="module" lang="ts">
    import type { components } from "../../apiScheme";

    type Event = components["schemas"]["Event"];
</script>

<script lang="ts">
    import Button from "../../Button.svelte";
    import { apiRequest } from "../../util";

    export let event: Event;
</script>


<p>{event.name} ({event.id}): {event.description}</p> 

{#if 'FreeForAllGame' in event.event_type}
    {event.event_type['FreeForAllGame'].participants}
{/if}
