const require_runtime = require("../../../../../_virtual/_rolldown/runtime.js");
const require_FormSettingContext = require("./FormSettingContext.js");
let react = require("react");
react = require_runtime.__toESM(react);
//#region src/components/dataSourceComponents/dataSourceForm/provider/formSetting/FormSettingProvider.tsx
/**
* @title: 表单设置Provider
* @description: 提供表单设置信息
*/
const FormSettingProvider = (props) => {
	const { children, renderMode, groupInfoPosition, currentValue, size, onDataSourceFinish, formatSubmitValues, formatInitialValues, customSubmit, beforeSubmit, scene, sceneRequestId } = props;
	const value = react.default.useMemo(() => {
		return {
			renderMode,
			groupInfoPosition,
			currentValue,
			size,
			onDataSourceFinish,
			formatSubmitValues,
			formatInitialValues,
			customSubmit,
			beforeSubmit,
			scene,
			sceneRequestId
		};
	}, [
		renderMode,
		groupInfoPosition,
		currentValue,
		size,
		beforeSubmit,
		scene,
		sceneRequestId
	]);
	return /* @__PURE__ */ react.default.createElement(require_FormSettingContext.default.Provider, { value }, children);
};
//#endregion
exports.default = FormSettingProvider;
