Files
slp-modular-cms/frontend/src/pages/NotFoundPage.tsx
T

28 lines
1016 B
TypeScript

import { FileQuestion } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useNavigate } from '@tanstack/react-router';
import { Button } from '@/components/ui/button';
export function NotFoundPage() {
const { t } = useTranslation();
const navigate = useNavigate();
return (
<div className="flex flex-col items-center justify-center py-16 text-center space-y-4">
<FileQuestion className="size-12 text-muted-foreground" />
<h1 className="text-2xl font-semibold" data-testid="not-found-title">
{t('error.404.title')}
</h1>
<p className="text-muted-foreground max-w-sm" data-testid="not-found-message">
{t('error.404.message')}
</p>
<Button
onClick={() => void navigate({ to: '/dashboard' })}
data-testid="not-found-back-button"
>
{t('error.backToDashboard')}
</Button>
</div>
);
}