import React, { ComponentType } from 'react'; import { FormattedMessage as Message } from 'react-intl'; import appName from 'app/components/auth/appInfo/appName.intl'; import BoxesField from './BoxesField'; import styles from './styles.scss'; 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;