import { ButtonStyleType } from "../Button/Button";
import Modal from "./Modal";
import useTranslateValue from "../../Utils/Translation";
import React from "react";
const ConfirmModal = (props) => {
    const { translateValue } = useTranslateValue();
    const translatedDescription = translateValue(props.description);
    return (React.createElement(Modal, { title: props.title, isLoading: props.isLoading, onSubmit: props.onSubmit, onClose: props.onClose ? props.onClose : undefined, submitButtonText: props.submitButtonText ? props.submitButtonText : "Confirm", closeButtonText: props.closeButtonText ? props.closeButtonText : "Cancel", closeButtonStyleType: props.closeButtonType ? props.closeButtonType : ButtonStyleType.NORMAL, disableSubmitButton: props.disableSubmitButton ? props.disableSubmitButton : false, submitButtonStyleType: props.submitButtonType
            ? props.submitButtonType
            : ButtonStyleType.PRIMARY, error: props.error },
        React.createElement("div", { "data-testid": "confirm-modal-description", className: "text-gray-500 mt-5 text-sm whitespace-pre-wrap break-words max-h-96 overflow-y-auto pr-1" }, translatedDescription)));
};
export default ConfirmModal;
//# sourceMappingURL=ConfirmModal.js.map