/** * @prettier */ import React from 'react'; import { withRouter } from 'react-router-dom'; import withWidth, { isWidthUp } from '@material-ui/core/withWidth/index'; import ListItem from '@material-ui/core/ListItem/index'; import Typography from '@material-ui/core/Typography/index'; import { Wrapper, Inner, EmptyPackage, Heading, Card, List } from './styles'; import PackageImg from './img/package.svg'; // eslint-disable-next-line react/prop-types const NotFound = ({ history, width }) => { const handleGoTo = to => () => { 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 ( {"Sorry, we couldn't find it..."} {renderSubTitle()} {renderList()} ); }; export default withRouter(withWidth()(NotFound));