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 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; const EmptyPackage = styled('img')({ width: '150px', margin: '0 auto', }); const StyledHeading = styled(Heading)<{ theme?: Theme }>(({ theme }) => ({ color: theme?.palette.type === 'light' ? theme?.palette.primary.main : theme?.palette.white, marginBottom: 16, }));