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 { useDeleteUserGroup } from "./dialogHooks.js";
import { messages } from "./locales.js";
import { withTelemetry } from "./TelemetryContext.js";
function DeleteUserGroupDialogComponent({ userGroupId, organizationId, onSuccess, onClose, }) {
    const intl = useIntl();
    const { deleteUserGroup, isDeleteUserGroupProcessing } = useDeleteUserGroup(userGroupId, organizationId, onSuccess, onClose);
    return (_jsx(DeleteConfirmDialog, { titleText: intl.formatMessage(messages.deleteUserGroupConfirmTitle), bodyText: intl.formatMessage(messages.deleteUserGroupConfirmBody), isProcessing: isDeleteUserGroupProcessing, onConfirm: deleteUserGroup, onCancel: onClose }));
}
/**
 * @internal
 */
export const DeleteUserGroupDialog = withTelemetry(DeleteUserGroupDialogComponent);
//# sourceMappingURL=DeleteUserGroupDialog.js.map