1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-11-09 22:09:07 +01:00
.profile/pages/500.tsx

23 lines
505 B
TypeScript
Raw Normal View History

2021-04-18 01:56:23 +02:00
import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import { ErrorPage } from 'components/ErrorPage'
2021-04-18 23:13:54 +02:00
import { Head } from 'components/Head'
2021-04-18 01:56:23 +02:00
const Error500: React.FC = () => {
const { t } = useTranslation()
return (
<>
<Head title='Divlo - 500' />
<ErrorPage statusCode={500} message={t('errors:serverError')} />
</>
)
}
export const getStaticProps: GetStaticProps = async () => {
return { props: {} }
}
export default Error500