import styled from '@emotion/styled'; import React, { useCallback } from 'react'; import { useHistory } from 'react-router-dom'; import { useTranslation } from 'react-i18next'; import Box from '../../muiComponents/Box'; import Button from '../../muiComponents/Button'; import Heading from '../../muiComponents/Heading'; import { Theme } from '../../design-tokens/theme'; import PackageImg from './img/package.svg'; const EmptyPackage = styled('img')({ width: '150px', margin: '0 auto', }); const StyledHeading = styled(Heading)<{ theme?: Theme }>(props => ({ color: props.theme && props.theme.palette.primary.main, marginBottom: 16, })); const NotFound: React.FC = () => { const history = useHistory(); const { t } = useTranslation(); const handleGoHome = useCallback(() => { history.push('/'); }, [history]); return ( {t('error.404.sorry-we-could-not-find-it')} ); }; export default NotFound;