import React, { ComponentType } from 'react'; import { FormattedMessage as Message } from 'react-intl'; import appInfo from 'app/components/auth/appInfo/AppInfo.intl.json'; import BoxesField from './BoxesField'; import styles from './styles.scss'; import messages from './BSoD.intl.json'; interface State { lastEventId?: string | void; } interface Props { lastEventId?: string; } // TODO: probably it's better to render this view from the App view // to remove dependencies from the store and IntlProvider const BSoD: ComponentType = ({ lastEventId }) => { let emailUrl = 'mailto:support@ely.by'; if (lastEventId) { emailUrl += `?subject=Bug report for #${lastEventId}`; } return (
el && new BoxesField(el)} />
support@ely.by
); }; export default BSoD;