confirmAccountClose.tsx 532 B

123456789101112131415161718192021
  1. import {Button} from 'sentry/components/button';
  2. import Confirm from 'sentry/components/confirm';
  3. import {t} from 'sentry/locale';
  4. export function ConfirmAccountClose({
  5. handleRemoveAccount,
  6. }: {
  7. handleRemoveAccount: () => void;
  8. }) {
  9. return (
  10. <Confirm
  11. priority="danger"
  12. message={t(
  13. 'This is permanent and cannot be undone, are you really sure you want to do this?'
  14. )}
  15. onConfirm={handleRemoveAccount}
  16. >
  17. <Button priority="danger">{t('Close Account')}</Button>
  18. </Confirm>
  19. );
  20. }