-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patherror.tsx
44 lines (39 loc) · 890 Bytes
/
error.tsx
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
'use client';
import Link from 'next/link';
import Image from 'next/image';
import { Button } from '@/components/ui/button';
/**
* Function representing the Error component.
*
* @returns Error component
*/
export default function Error() {
return (
<div className="flex min-h-full flex-col items-center justify-center gap-y-4">
<Image
priority
src="/images/error.png"
height={300}
width={300}
alt="Error"
className="dark:hidden"
/>
<Image
priority
src="/images/error-dark.png"
height={300}
width={300}
alt="Error"
className="hidden dark:block"
/>
<h2 className="text-xl font-medium">
Something went wrong!
</h2>
<Button asChild>
<Link href="/documents">
Go back
</Link>
</Button>
</div>
)
}