import { memo } from "react" import { RouteComponentProps } from "react-router-dom" import { Helmet } from "react-helmet" import styles from "./styles.module.scss" type Props = RouteComponentProps const NotFound = ({ staticContext }: Props) => { // We have to check if staticContext exists // because it will be undefined if rendered through a BrowserRoute /* istanbul ignore next */ if (staticContext) staticContext.statusCode = 404 return (
Oops, Page was not found!