first commit
This commit is contained in:
commit
e687b4437b
418 files changed
+33577
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user