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 { AddWorkspace } from "./Workspace/AddWorkspace.js";
const alignPoints = [{ align: "cc cc" }];
const noGrantedWorkspaces = [];
function AddWorkspaceToSubjectsComponent({ ids, subjectType, organizationId, onSuccess, onClose, areFilterViewsEnabled = false, }) {
    return (_jsx(OrganizationIdProvider, { organizationId: organizationId, children: _jsx(Overlay, { alignPoints: alignPoints, isModal: true, positionType: "fixed", className: "gd-user-management-dialog", resizeObserverThreshold: 0.2, children: _jsx(AddWorkspace, { ids: ids, subjectType: subjectType, grantedWorkspaces: noGrantedWorkspaces, enableBackButton: false, onSubmit: onSuccess, onCancel: onClose, onClose: onClose, areFilterViewsEnabled: areFilterViewsEnabled }) }) }));
}
/**
 * @internal
 */
export const AddWorkspaceToSubjects = withTelemetry(AddWorkspaceToSubjectsComponent);
//# sourceMappingURL=AddWorkspaceToSubjects.js.map