import { useLocation } from "react-router-dom"; import { useEffect } from "react"; import { useTranslation } from 'react-i18next'; const NotFound = () => { const { t } = useTranslation(); const location = useLocation(); useEffect(() => { if (import.meta.env.DEV) console.error( "404 Error: User attempted to access non-existent route:", location.pathname ); }, [location.pathname]); return (

{t('notFound.code')}

{t('notFound.message')}

{t('notFound.backToHome')}
); }; export default NotFound;