import { serverSideTranslations } from 'next-i18next/serverSideTranslations' import { useTranslation } from 'next-i18next' import { RektIcon } from '@components/icons/RektIcon' export async function getStaticProps({ locale }: { locale: string }) { return { props: { ...(await serverSideTranslations(locale, [ 'common', 'notifications', 'profile', 'search', 'settings', ])), // Will be passed to the page component as props }, } } export default function Custom404() { const { t } = useTranslation('common') return (

404: {t('404-heading')}

{t('404-description')}

) }