<script setup lang="ts">
import { useAlertStore } from "@/stores/alerts";
import AlertItem from "@/components/AlertItem.vue";

const { alerts } = useAlertStore();
</script>

<template>
    <div class="toast select-none">
        <alert-item
            v-for="alert in alerts"
            :key="alert.created.getTime()"
            :alert="alert"
        />
    </div>
</template>
