import { jsx as _jsx } from "react/jsx-runtime";
import { useIntl } from "react-intl";
import { ConfirmDialog, Typography } from "@gooddata/sdk-ui-kit";
import { messages } from "../locales.js";
export function DeleteConfirmDialog({ titleText, bodyText, isProcessing, onConfirm, onCancel, }) {
    const intl = useIntl();
    return (_jsx(ConfirmDialog, { onSubmit: onConfirm, onCancel: onCancel, isPositive: false, isSubmitDisabled: isProcessing, showProgressIndicator: isProcessing, className: "gd-user-management-delete-dialog s-user-management-delete-confirm-dialog", headline: titleText, submitButtonText: intl.formatMessage(messages.confirmDeleteButton), cancelButtonText: intl.formatMessage(messages.cancelDeleteButton), children: _jsx(Typography, { tagName: "p", children: bodyText }) }));
}
//# sourceMappingURL=DeleteConfirmDialog.js.map