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