import TableSettingContext from "./TableSettingContext.js";
import React from "react";
//#region src/components/dataSourceComponents/dataSourceTable/provider/tableSetting/TableSettingProvider.tsx
/**
* @title: 表单设置Provider
* @description: 提供表单设置信息
*/
const TableSettingProvider = (props) => {
	const { children, dataSource } = props;
	const value = React.useMemo(() => {
		return { dataSource };
	}, [dataSource]);
	return /* @__PURE__ */ React.createElement(TableSettingContext.Provider, { value }, children);
};
//#endregion
export { TableSettingProvider as default };
