import { useLocation } from "react-router-dom"; import { useEffect } from "react"; import { useDocumentTitle } from '@/hooks/useDocumentTitle'; import { logger } from '@/lib/logger'; const NotFound = () => { useDocumentTitle('404 - Page Not Found'); const location = useLocation(); useEffect(() => { logger.error("404 Error: User attempted to access non-existent route", { pathname: location.pathname }); }, [location.pathname]); return (