import {Fragment} from 'react'; // eslint-disable-next-line no-restricted-imports import {withRouter, WithRouterProps} from 'react-router'; import {ModalRenderProps} from 'sentry/actionCreators/modal'; import {Client} from 'sentry/api'; import Link from 'sentry/components/links/link'; import {t, tct} from 'sentry/locale'; import withApi from 'sentry/utils/withApi'; import {EmailAddresses} from 'sentry/views/settings/account/accountEmails'; import TextBlock from 'sentry/views/settings/components/text/textBlock'; type Props = WithRouterProps & Pick & { api: Client; actionMessage?: string; }; function EmailVerificationModal({ Header, Body, actionMessage = 'taking this action', }: Props) { return (
{t('Action Required')}
{tct('Please verify your email before [actionMessage], or [link].', { actionMessage, link: ( {t('go to your email settings')} ), })}
); } export default withRouter(withApi(EmailVerificationModal)); export {EmailVerificationModal};