import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { useIntl } from "react-intl";
import { DeleteConfirmDialog } from "./ConfirmDialogs/DeleteConfirmDialog.js";
import { useDeleteUser } from "./dialogHooks.js";
import { messages } from "./locales.js";
import { withTelemetry } from "./TelemetryContext.js";
function DeleteUserDialogComponent({ userId, organizationId, onSuccess, onClose }) {
    const intl = useIntl();
    const { deleteUser, isDeleteUserProcessing } = useDeleteUser(userId, organizationId, onSuccess, onClose);
    return (_jsx(DeleteConfirmDialog, { titleText: intl.formatMessage(messages.deleteUserConfirmTitle), bodyText: intl.formatMessage(messages.deleteUserConfirmBody), isProcessing: isDeleteUserProcessing, onConfirm: deleteUser, onCancel: onClose }));
}
/**
 * @internal
 */
export const DeleteUserDialog = withTelemetry(DeleteUserDialogComponent);
//# sourceMappingURL=DeleteUserDialog.js.map