import React from 'react'; import { useTranslation } from 'react-i18next'; import { useNavigate } from 'react-router-dom'; import { HomeIcon, FolderIcon, DocumentTextIcon, InboxIcon, ExclamationTriangleIcon, } from '@heroicons/react/24/outline'; const NotFound: React.FC = () => { const { t } = useTranslation(); const navigate = useNavigate(); const quickActions = [ { name: t('navigation.today', 'Today'), href: '/today', icon: HomeIcon, description: t('notFound.todayDescription', "View today's tasks"), }, { name: t('navigation.projects', 'Projects'), href: '/projects', icon: FolderIcon, description: t( 'notFound.projectsDescription', 'Browse your projects' ), }, { name: t('navigation.inbox', 'Inbox'), href: '/inbox', icon: InboxIcon, description: t( 'notFound.inboxDescription', 'Check your inbox items' ), }, { name: t('navigation.notes', 'Notes'), href: '/notes', icon: DocumentTextIcon, description: t('notFound.notesDescription', 'Browse your notes'), }, ]; const handleNavigation = (href: string) => { navigate(href); }; const handleGoBack = () => { if (window.history.length > 1) { navigate(-1); } else { navigate('/today'); } }; return (
{/* Error Icon */}
{/* Error Message */}

404

{t('notFound.title', 'Page Not Found')}

{t( 'notFound.description', "The page you're looking for doesn't exist. It might have been moved, deleted, or you entered the wrong URL." )}

{/* Action Buttons */}
{/* Quick Navigation */}

{t('notFound.quickActions', 'Quick Actions')}

{quickActions.map((action) => ( ))}
); }; export default NotFound;