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