import { GetStaticProps, NextPage } from 'next'
import useTranslation from 'next-translate/useTranslation'
import { ErrorPage } from 'components/ErrorPage'
import { Head } from 'components/Head'
import { Header } from 'components/Header'
import { Footer, FooterProps } from 'components/Footer'
import { getDefaultDescription } from 'utils/getDefaultDescription'
import { DIVLO_BIRTHDAY, getAge } from 'utils/getAge'
interface Error500Props extends FooterProps {
description: string
}
const Error500: NextPage = (props) => {
const { t } = useTranslation()
const { version, description } = props
return (
<>
>
)
}
export const getStaticProps: GetStaticProps = async () => {
const { readPackage } = await import('read-pkg')
const { version } = await readPackage()
const age = getAge(DIVLO_BIRTHDAY)
const description = getDefaultDescription(age)
return { props: { version, description } }
}
export default Error500