2024-08-12 11:00:25 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
import { Button } from '$lib/components/ui/button';
|
2025-03-20 19:57:41 +01:00
|
|
|
import { m } from '$lib/paraglide/messages';
|
2024-08-12 11:00:25 +02:00
|
|
|
import { LucideXCircle } from 'lucide-svelte';
|
|
|
|
|
|
|
|
|
|
let { message, showButton = true }: { message: string; showButton?: boolean } = $props();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="mt-[20%] flex flex-col items-center">
|
2025-01-19 15:41:16 +01:00
|
|
|
<LucideXCircle class="h-12 w-12 text-muted-foreground" />
|
2025-03-20 19:57:41 +01:00
|
|
|
<h1 class="mt-3 text-2xl font-semibold">{m.something_went_wrong()}</h1>
|
2024-08-12 11:00:25 +02:00
|
|
|
<p class="text-muted-foreground">{message}</p>
|
|
|
|
|
{#if showButton}
|
2025-03-20 19:57:41 +01:00
|
|
|
<Button size="sm" class="mt-5" href="/">{m.go_back_to_home()}</Button>
|
2024-08-12 11:00:25 +02:00
|
|
|
{/if}
|
|
|
|
|
</div>
|