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'; export const NOT_FOUND_TEXT = "Sorry, we couldn't find it..."; export type NotFoundProps = RouteComponentProps & { width: any; history: any }; const NotFound: React.FC = ({ history, width }) => { const handleGoTo = (to: string) => () => { history.push(to); }; const handleGoBack = () => () => { history.goBack(); }; const renderList = () => ( {'Home'} {'Back'} ); const renderSubTitle = () => (
{"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));