import { useSeoMeta } from "@unhead/react"; import { useLocation } from "react-router-dom"; import { useEffect } from "react"; const NotFound = () => { 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 (