mirror of
https://github.com/Thream/website.git
synced 2024-07-21 09:28:32 +02:00
24 lines
508 B
TypeScript
24 lines
508 B
TypeScript
|
import { GetStaticProps } from 'next'
|
||
|
import useTranslation from 'next-translate/useTranslation'
|
||
|
|
||
|
import { Head } from 'components/Head'
|
||
|
import { ErrorPage } from 'components/ErrorPage'
|
||
|
|
||
|
const Error500: React.FC = () => {
|
||
|
const { t } = useTranslation()
|
||
|
|
||
|
return (
|
||
|
<>
|
||
|
<Head title='Thream | 500' />
|
||
|
|
||
|
<ErrorPage message={t('errors:server-error')} statusCode={500} />
|
||
|
</>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const getStaticProps: GetStaticProps = async () => {
|
||
|
return { props: {} }
|
||
|
}
|
||
|
|
||
|
export default Error500
|