import React from 'react'; import { Box, Typography, Link } from '@mui/material'; import { useNavigate } from 'react-router-dom'; const NotFound = () => { const navigate = useNavigate(); return ( 404 Oops! The page you're looking for doesn't exist. { e.preventDefault(); navigate('/'); }} > Go Home ); }; export default NotFound;