import React from 'react';
import DataSourceProvider from "../provider/dataSource/DataSourceProvider";
import BaseWrapper from "./BaseWrapper";

// 数据源包装器
var DataSourceWrapper = function DataSourceWrapper(props) {
  var children = props.children,
    dataSource = props.dataSource,
    overrideData = props.overrideData,
    autoRun = props.autoRun,
    actions = props.actions,
    currentValue = props.currentValue,
    __designMode = props.__designMode;
  return /*#__PURE__*/React.createElement(DataSourceProvider, {
    dataSource: dataSource,
    overrideData: overrideData,
    actions: actions,
    autoRun: autoRun,
    currentValue: currentValue,
    __designMode: __designMode
  }, /*#__PURE__*/React.createElement(BaseWrapper, props, children));
};
export default DataSourceWrapper;