2
0

DuplicateExportConfirmModal.tsx 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. import { useTranslation } from 'react-i18next';
  2. import { Modal, ModalBody, ModalFooter, ModalHeader } from 'reactstrap';
  3. type Props = {
  4. isOpen: boolean;
  5. onClose: () => void;
  6. onRestart: () => void;
  7. };
  8. export const DuplicateExportConfirmModal = ({
  9. isOpen,
  10. onClose,
  11. onRestart,
  12. }: Props): JSX.Element => {
  13. const { t } = useTranslation('admin');
  14. return (
  15. <Modal isOpen={isOpen} toggle={onClose}>
  16. <ModalHeader tag="h4" toggle={onClose}>
  17. {t('audit_log_management.confirm_export')}
  18. </ModalHeader>
  19. <ModalBody>
  20. {t('audit_log_management.duplicate_export_confirm')}
  21. </ModalBody>
  22. <ModalFooter>
  23. <button
  24. type="button"
  25. className="btn btn-outline-secondary"
  26. onClick={onClose}
  27. >
  28. {t('export_management.cancel')}
  29. </button>
  30. <button type="button" className="btn btn-primary" onClick={onRestart}>
  31. {t('audit_log_management.restart_export')}
  32. </button>
  33. </ModalFooter>
  34. </Modal>
  35. );
  36. };