"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.NestedTable = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _providers = require("../../providers");
var _CollectionCard = require("../CollectionCard");
var _NestedTableWSRTable = require("./NestedTableWSRTable");
var _mobxReactLite = require("mobx-react-lite");
var _minimalRequiredWdsRuntimeCheck = require("../../minimalRequiredWdsRuntimeCheck");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/NestedTable/NestedTable.tsx";
function _NestedTable(props) {
  const {
    state,
    dataHook
  } = props;
  const {
    toolbar
  } = state;
  if (process.env.NODE_ENV !== 'production') {
    (0, _minimalRequiredWdsRuntimeCheck.minimalRequiredWdsRuntimeCheck)({
      required: '^1.64.1',
      requiredBy: 'WixPatterns/NestedTable'
    });
  }
  return /*#__PURE__*/_react.default.createElement(_CollectionCard.CollectionCard, {
    errorState: false,
    state: toolbar,
    dataHook: dataHook,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 131,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_providers.TableProvider, {
    value: state.tableState,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 132,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement(_NestedTableWSRTable.NestedTableWSRTable, (0, _extends2.default)({}, props, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 133,
      columnNumber: 9
    }
  }))));
}
const NestedTable = exports.NestedTable = (0, _mobxReactLite.observer)(_NestedTable);
//# sourceMappingURL=NestedTable.js.map