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/404.tsx
2021-10-24 05:19:39 +02:00

24 lines
510 B
TypeScript

import { GetStaticProps } from 'next'
import useTranslation from 'next-translate/useTranslation'
import { Head } from 'components/Head'
import { ErrorPage } from 'components/ErrorPage'
const Error404: React.FC = () => {
const { t } = useTranslation()
return (
<>
<Head title='Thream | 404' />
<ErrorPage message={t('errors:page-not-found')} statusCode={404} />
</>
)
}
export const getStaticProps: GetStaticProps = async () => {
return { props: {} }
}
export default Error404