import ListItem from '@material-ui/core/ListItem'; import Typography from '@material-ui/core/Typography'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import React from 'react'; import { RouteComponentProps, withRouter } from 'react-router-dom'; import PackageImg from './img/package.svg'; import { Card, EmptyPackage, Heading, Inner, List, Wrapper } from './styles'; import { Breakpoint } from '@material-ui/core/styles/createBreakpoints'; export const NOT_FOUND_TEXT = "Sorry, we couldn't find it..."; export type NotFoundProps = RouteComponentProps & { width: Breakpoint; history }; const NotFound: React.FC = ({ history, width }) => { const handleGoTo = (to: string): (() => void | undefined) => () => { history.push(to); }; const handleGoBack = (): ((e: React.MouseEvent) => void | undefined) => () => { history.goBack(); }; const renderList = (): JSX.Element => ( {'Home'} {'Back'} ); const renderSubTitle = (): JSX.Element => (
{"The page you're looking for doesn't exist."}
{'Perhaps these links will help find what you are looking for:'}
); return ( {NOT_FOUND_TEXT} {renderSubTitle()} {renderList()} ); }; export default withRouter(withWidth()(NotFound));