import { useSeoMeta } from "@unhead/react"; import { useLocation } from "react-router-dom"; import { useTranslation } from 'react-i18next'; import { useEffect } from "react"; const NotFound = () => { const { t } = useTranslation(); const location = useLocation(); useSeoMeta({ title: "404 - Page Not Found", description: "The page you are looking for could not be found. Return to the home page to continue browsing.", }); useEffect(() => { console.error( "404 Error: User attempted to access non-existent route:", location.pathname ); }, [location.pathname]); return (

404

{t('pageNotFound')}

{t('returnToHome')}
); }; export default NotFound;