import React from 'react';
import DataSourceProvider from "../dataSourceComponents/provider/dataSource/DataSourceProvider";
import { HandleActionsProvider } from "./provider/HandleActions";
import { RefManagerProvider } from "./provider/RefManager";
import { ChildComponentPropsProvider } from "./provider/ChildComponentProps";
var PisellDataSourceContainer = function PisellDataSourceContainer(props) {
  var dataSource = props.dataSource,
    __designMode = props.__designMode,
    extraParams = props.extraParams,
    actions = props.actions,
    overrideData = props.overrideData,
    currentValue = props.currentValue,
    children = props.children,
    autoRun = props.autoRun,
    _props$pagination = props.pagination,
    pagination = _props$pagination === void 0 ? true : _props$pagination,
    childComponentProps = props.childComponentProps;
  return /*#__PURE__*/React.createElement(DataSourceProvider, {
    dataSource: dataSource,
    overrideData: overrideData,
    actions: actions,
    currentValue: currentValue,
    __designMode: __designMode,
    extraParams: extraParams
  }, /*#__PURE__*/React.createElement(RefManagerProvider, null, /*#__PURE__*/React.createElement(ChildComponentPropsProvider, {
    childComponentProps: childComponentProps
  }, /*#__PURE__*/React.createElement(HandleActionsProvider, {
    autoRun: autoRun || {
      list: true
    },
    dataSource: dataSource,
    pagination: pagination,
    extraParams: extraParams
  }, children))));
};
export default PisellDataSourceContainer;