removeConfirm.tsx 743 B

12345678910111213141516171819202122232425
  1. import {Fragment} from 'react';
  2. import Confirm from 'sentry/components/confirm';
  3. import {t} from 'sentry/locale';
  4. import ConfirmHeader from 'sentry/views/settings/account/accountSecurity/components/confirmHeader';
  5. import TextBlock from 'sentry/views/settings/components/text/textBlock';
  6. type Props = React.ComponentProps<typeof Confirm>;
  7. const message = (
  8. <Fragment>
  9. <ConfirmHeader>{t('Do you want to remove this method?')}</ConfirmHeader>
  10. <TextBlock>
  11. {t(
  12. 'Removing the last authentication method will disable two-factor authentication completely.'
  13. )}
  14. </TextBlock>
  15. </Fragment>
  16. );
  17. function RemoveConfirm(props: Props) {
  18. return <Confirm {...props} message={message} />;
  19. }
  20. export default RemoveConfirm;