const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_useDataSource = require("../hooks/useDataSource.js");
const require_useVariables = require("../hooks/useVariables.js");
const require_useComponentId = require("../hooks/useComponentId.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.tsx
const BaseWrapper = (props) => {
	const { children } = props;
	const componentId = require_useComponentId.default(props);
	const { get, list } = require_useDataSource.default();
	const { registerValueVariable } = require_useVariables.default();
	(0, react.useEffect)(() => {
		if (componentId) registerValueVariable === null || registerValueVariable === void 0 || registerValueVariable(componentId, {
			get,
			list
		});
	}, [
		get,
		list,
		componentId
	]);
	return /* @__PURE__ */ react.default.createElement("div", null, children);
};
//#endregion
exports.default = BaseWrapper;
