import Link from 'next/link' import {Col} from 'web/components/layout/col' import {PageBase} from 'web/components/page-base' import {SEO} from 'web/components/SEO' import {Title} from 'web/components/widgets/title' import {useT} from 'web/lib/locale' export const NOT_FOUND_TEXTS = { profileNotFound: 'Profile not found.', } as const export default function Custom404(props: {customText?: string}) { // console.log('props:', props) return ( ) } export function Custom404Content(props: {customText?: string}) { const {customText} = props const t = useT() return (
{t('404.title', '404: Oops!')} {customText ? (

{t( `custom404.${customText}`, NOT_FOUND_TEXTS[customText as keyof typeof NOT_FOUND_TEXTS] ?? customText, )}

) : (

{t('404.default_message', "I can't find that page.")}

)}

{t( '404.help_text', "If you didn't expect this, try to reload the page in a few seconds or get some ", )} {t('organization.help', 'help').toLowerCase()}.

{/**/} {/* */} {/**/}
) }