import { jsx as _jsx } from "react/jsx-runtime";
// (C) 2023-2025 GoodData Corporation
import { Overlay } from "@gooddata/sdk-ui-kit";
import { OrganizationIdProvider } from "./OrganizationIdContext.js";
import { withTelemetry } from "./TelemetryContext.js";
import { AddUserGroup } from "./UserGroups/AddUserGroup.js";
const alignPoints = [{ align: "cc cc" }];
const noGrantedUserGroups = [];
function AddUserGroupsToUsersDialogComponent({ userIds, organizationId, onSuccess, onClose, }) {
    return (_jsx(OrganizationIdProvider, { organizationId: organizationId, children: _jsx(Overlay, { alignPoints: alignPoints, isModal: true, positionType: "fixed", children: _jsx(AddUserGroup, { userIds: userIds, grantedUserGroups: noGrantedUserGroups, enableBackButton: false, onSubmit: onSuccess, onCancel: onClose, onClose: onClose }) }) }));
}
/**
 * @internal
 */
export const AddUserGroupsToUsersDialog = withTelemetry(AddUserGroupsToUsersDialogComponent);
//# sourceMappingURL=AddUserGroupsToUsersDialog.js.map