mirror of
https://github.com/pocket-id/pocket-id.git
synced 2025-12-18 19:23:03 +03:00
initial commit
This commit is contained in:
15
frontend/src/lib/components/error.svelte
Normal file
15
frontend/src/lib/components/error.svelte
Normal file
@@ -0,0 +1,15 @@
|
||||
<script lang="ts">
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
import { LucideXCircle } from 'lucide-svelte';
|
||||
|
||||
let { message, showButton = true }: { message: string; showButton?: boolean } = $props();
|
||||
</script>
|
||||
|
||||
<div class="mt-[20%] flex flex-col items-center">
|
||||
<LucideXCircle class="text-muted-foreground h-12 w-12" />
|
||||
<h1 class="mt-3 text-2xl font-semibold">Something went wrong</h1>
|
||||
<p class="text-muted-foreground">{message}</p>
|
||||
{#if showButton}
|
||||
<Button size="sm" class="mt-5" href="/">Go back to home</Button>
|
||||
{/if}
|
||||
</div>
|
||||
Reference in New Issue
Block a user