import React from 'react'; import { translate } from '@aws-amplify/ui'; import { Button, Card, Flex, Text } from '../../../primitives'; import { ButtonComponent } from '../types'; import { DefaultErrorMessage } from '../shared/Defaults'; import { DeleteUserComponents, WarningViewComponent } from './types'; const DefaultWarningView: WarningViewComponent = ({ onCancel, onConfirm, isDisabled, }) => { // translations // TODO: consolodiate translations to accountSettingsTextUtil const warningText = translate( 'Deleting your account is not reversable. You will lose access to your account and all data associated with it.' ); const cancelText = translate('Cancel'); const deleteMyAccountText = translate('Delete my account'); return ( {warningText} ); }; const DefaultDeleteButton: ButtonComponent = (props) => (