import {useTranslation} from 'next-i18next'; import Box from '@mui/material/Box'; import Typography from '@mui/material/Typography'; import pageUtils from '../lib/pageUtils'; interface Props { statusCode: number; title?: string; } const NotFoundPage = (props: Props) => { const {t} = useTranslation(); const {statusCode = 404, title = t`generic.errors.not_found`} = props; return ( {statusCode} - {title} ); }; export const getServerSideProps = pageUtils.getServerSideProps(); export default NotFoundPage;