first commit
linter / quality (push) Canceled after 0s
tests / ci (8.3) (push) Canceled after 0s
tests / ci (8.4) (push) Canceled after 0s
tests / ci (8.5) (push) Canceled after 0s

This commit is contained in:
salam committed 2026-10-06 18:53:03 +02:00
commit e687b4437b
418 files changed
+33577

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
<script lang="ts">
import CircleAlert from 'lucide-svelte/icons/circle-alert';
import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert';
let {
errors = [],
title = 'Something went wrong.',
}: {
errors: string[];
title?: string;
} = $props();
const uniqueErrors = $derived([...new Set(errors)]);
</script>
<Alert variant="destructive">
<CircleAlert class="size-4" />
<AlertTitle>{title}</AlertTitle>
<AlertDescription>
<ul class="list-inside list-disc text-sm">
{#each uniqueErrors as error (error)}
<li>{error}</li>
{/each}
</ul>
</AlertDescription>
</Alert>