File size: 792 Bytes
c6afb12
 
 
 
 
c85bc2e
c6afb12
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
c85bc2e
c6afb12
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<script lang="ts">
	import { browser } from '$app/environment';
	import { Button } from '$lib/components/ui/button';
	import Empty from '$lib/components/Empty.svelte';
	import { m } from '$lib/paraglide/messages';
	import { localizeHref } from '$lib/paraglide/runtime';
	import { ServerCrash } from '@lucide/svelte';
</script>

<Empty
	title={m.internal_server_error()}
	description={m.sorry_something_went_wrong_on_our_end_we_are_currently_trying_to_fix_the_problem()}
>
	{#snippet icon()}
		<ServerCrash />
	{/snippet}

	{#snippet content()}
		<div class="flex gap-2">
			<Button
				onclick={() => {
					if (browser) location.reload();
				}}>{m.reload_page()}</Button
			>
			<Button variant="secondary" href={localizeHref('/')}>{m.to_main_page()}</Button>
		</div>
	{/snippet}
</Empty>