import SvgIcon from './SvgIcon'; type ExceptionType = '403' | '404' | '500'; interface Props { /** * Exception type * * - 403: no permission * - 404: not found * - 500: service error */ type: ExceptionType; } const iconMap: Record = { '403': 'no-permission', '404': 'not-found', '500': 'service-error' }; const ExceptionBase: FC = memo(({ type }) => { const { t } = useTranslation(); const nav = useNavigate(); const onClick = () => { nav('/'); }; return (
{t('common.backToHome')}
); }); export default ExceptionBase;