-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Expand file tree
/
Copy patherror.tsx
More file actions
31 lines (25 loc) · 836 Bytes
/
error.tsx
File metadata and controls
31 lines (25 loc) · 836 Bytes
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
'use client';
import { ArrowRightIcon } from '@heroicons/react/24/solid';
import { useTranslations } from 'next-intl';
import Button from '#site/components/Common/Button';
import GlowingBackdropLayout from '#site/layouts/GlowingBackdrop';
import type { FC } from 'react';
const ErrorPage: FC<{ error: Error }> = () => {
const t = useTranslations();
return (
<GlowingBackdropLayout kind="default">
500
<h1 className="special -mt-4 text-center">
{t('layouts.error.internalServerError.title')}
</h1>
<p className="-mt-4 max-w-sm text-center text-lg">
{t('layouts.error.internalServerError.description')}
</p>
<Button href="/">
{t('layouts.error.backToHome')}
<ArrowRightIcon />
</Button>
</GlowingBackdropLayout>
);
};
export default ErrorPage;