import { Button, Container, Group, Text, Title } from '@pikku/mantine/core'; import { DEFAULT_LOCALE } from '@/config'; import { useI18n } from '@/context/i18n-provider'; import { useNavigate, useParams } from '@tanstack/react-router'; import classes from './NotFoundTitle.module.css'; export function NotFoundTitle() { const t = useI18n(); const navigate = useNavigate(); const { lang } = useParams({ strict: false }) as { lang?: string }; const handleGoHome = () => { navigate({ to: lang ? `/${lang}` : `/${DEFAULT_LOCALE}` }); }; return (
404
{t('notfound.title')} {t('notfound.description')}
); }