<script setup>
const { data: participants } = await useFetch('/api/participants')
</script>

<template>
    <div>
        <div class="grid md:grid-cols-2 gap-4">
            <div v-for="participant in participants" :key="participant.id">
                <ArtistListItem :runningOrder="participant.running_order" :country="participant.country_fi" :artist="participant.artist" :title="participant.title" :flag="participant.country_code" :artistID="participant.id" />
            </div>
        </div>
    </div>
</template>