import { Link, useLocation, useRouteError } from 'react-router-dom' import { appRoutes } from 'routes' interface NotFoundPageProps { title: string message: string } export const NotFoundPage = ({ title = 'Page not found', message = "The page you're attempting to visit doesn't exist" }: Partial) => { const error = useRouteError() as Partial const location = useLocation() return (

{error?.title || title}

{error?.message || message}

Try again Go home
) }