import React from 'react'; import withStyles from '@piglovesyou/isomorphic-style-loader/withStyles'; import { ErrorPagePropTypes } from '../../app/types'; import s from './ErrorPage.css'; const ErrorPage = ({ error }: ErrorPagePropTypes) => { if (__DEV__ && error) { return (

{error.name}

{error.stack}
); } return (

Error

Sorry, a critical error occurred on this page.

); }; export { ErrorPage as ErrorPageWithoutStyle }; export default withStyles(s)(ErrorPage);