import { jsx as _jsx } from "react/jsx-runtime";
import { Overlay } from "@gooddata/sdk-ui-kit";
import { AddDataSource } from "./DataSources/AddDataSource.js";
import { OrganizationIdProvider } from "./OrganizationIdContext.js";
import { withTelemetry } from "./TelemetryContext.js";
const alignPoints = [{ align: "cc cc" }];
const noGrantedDataSources = [];
function AddDataSourceToSubjectsComponent({ ids, subjectType, organizationId, onSuccess, onClose, renderDataSourceIcon, }) {
    return (_jsx(OrganizationIdProvider, { organizationId: organizationId, children: _jsx(Overlay, { alignPoints: alignPoints, isModal: true, positionType: "fixed", children: _jsx(AddDataSource, { ids: ids, subjectType: subjectType, grantedDataSources: noGrantedDataSources, enableBackButton: false, onSubmit: onSuccess, onCancel: onClose, onClose: onClose, renderDataSourceIcon: renderDataSourceIcon }) }) }));
}
/**
 * @internal
 */
export const AddDataSourceToSubjects = withTelemetry(AddDataSourceToSubjectsComponent);
//# sourceMappingURL=AddDataSourceToSubjects.js.map