Files
tout-doux/resources/ts/components/AlertsContainer.vue
T
klemek 5d655b9613
TS Lint / Oxlint (push) Successful in 2m14s
TS Lint / TypeScript (push) Successful in 2m20s
TS Lint / ESLint (push) Successful in 2m39s
feat: toasts
2026-07-14 11:39:03 +02:00

14 lines
413 B
Vue

<script setup lang="ts">
import { useAlertStore } from '@/stores/alerts';
import { defineAsyncComponent } from 'vue';
const AlertItem = defineAsyncComponent(() => import("@/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>