const require_runtime = require("../../../_virtual/_rolldown/runtime.js");
const require_objectSpread2 = require("../../../_virtual/_@oxc-project_runtime@0.122.0/helpers/objectSpread2.js");
let react = require("react");
react = require_runtime.__toESM(react);
let antd = require("antd");
//#region src/components/pisellDataSourceContainer/provider/ChildComponentProps.tsx
const ChildComponentPropsContext = (0, react.createContext)(void 0);
const ChildComponentPropsProvider = ({ childComponentProps, children }) => {
	const [form] = antd.Form.useForm();
	const contextValue = (0, react.useMemo)(() => {
		return require_objectSpread2._objectSpread2(require_objectSpread2._objectSpread2({}, childComponentProps), {}, { form });
	}, [childComponentProps, form]);
	return /* @__PURE__ */ react.default.createElement(ChildComponentPropsContext.Provider, { value: contextValue }, children);
};
const useChildComponentPropsContext = () => {
	return (0, react.useContext)(ChildComponentPropsContext);
};
//#endregion
exports.ChildComponentPropsProvider = ChildComponentPropsProvider;
exports.useChildComponentPropsContext = useChildComponentPropsContext;
