<template>
    <div>
        <h1>Liste des cards</h1>
        <ul>
            <li v-for="card in cards" :key="card.id">{{ card.name }}</li>
        </ul>
    </div>
</template>

<script setup lang="ts">
import type { Card } from '@/types/cart';
import { defineProps } from 'vue';

const props = defineProps({
    cards: Array<Card>,
});

console.log(props.cards);
</script>
