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 { AddUser } from "./Users/AddUser.js";
const alignPoints = [{ align: "cc cc" }];
const noGrantedUsers = [];
function AddUsersToUserGroupsDialogComponent({ userGroupIds, organizationId, onSuccess, onClose, }) {
    return (_jsx(OrganizationIdProvider, { organizationId: organizationId, children: _jsx(Overlay, { alignPoints: alignPoints, isModal: true, positionType: "fixed", children: _jsx(AddUser, { userGroupIds: userGroupIds, grantedUsers: noGrantedUsers, enableBackButton: false, onSubmit: onSuccess, onCancel: onClose, onClose: onClose }) }) }));
}
/**
 * @internal
 */
export const AddUsersToUserGroupsDialog = withTelemetry(AddUsersToUserGroupsDialogComponent);
//# sourceMappingURL=AddUsersToUserGroupsDialog.js.map