import { getLayout } from '@components/Layouts/Layout'; import PostHeader from '@components/PostHeader/PostHeader'; import { seo } from '@config/seo'; import { t, Trans } from '@lingui/macro'; import { NextPageWithLayout } from '@ts/types/app'; import { defaultLocale, loadTranslation } from '@utils/helpers/i18n'; import { GetStaticProps, GetStaticPropsContext } from 'next'; import Head from 'next/head'; import Link from 'next/link'; import styles from '@styles/pages/Page.module.scss'; const error404: NextPageWithLayout = () => { return ( <> {seo.error404.title}
Sorry, it seems that the page you are looking for does not exist. {' '} If you think this path should work, feel free to{' '} contact me with the necessary information so that I can fix the problem.
); }; error404.getLayout = getLayout; export const getStaticProps: GetStaticProps = async ( context: GetStaticPropsContext ) => { const breadcrumbTitle = t`Error`; const { locale } = context; const translation = await loadTranslation(locale || defaultLocale); return { props: { breadcrumbTitle, locale, translation, }, }; }; export default error404;