This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
website/pages/500.tsx

30 lines
719 B
TypeScript
Raw Normal View History

2021-10-24 05:19:39 +02:00
import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import { ErrorPage } from 'components/ErrorPage'
2021-10-24 05:48:06 +02:00
import { Head } from 'components/Head'
import { Header } from 'components/Header'
import { Footer } from 'components/Footer'
2021-10-24 05:19:39 +02:00
const Error500: React.FC = () => {
const { t } = useTranslation()
return (
<>
2021-10-24 05:48:06 +02:00
<Head title='Divlo - 500' />
2021-10-24 05:19:39 +02:00
2021-10-24 05:48:06 +02:00
<Header />
<main className='flex flex-col md:mx-auto md:max-w-4xl lg:max-w-7xl'>
<ErrorPage statusCode={500} message={t('errors:server-error')} />
</main>
<Footer />
2021-10-24 05:19:39 +02:00
</>
)
}
export const getStaticProps: GetStaticProps = async () => {
return { props: {} }
}
export default Error500