"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.TableFoldersInfiniteScroll = void 0;
var _react = _interopRequireDefault(require("react"));
var _mobxReactLite = require("mobx-react-lite");
var _PageInfiniteScrollLoader = require("../PageInfiniteScrollLoader");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/TableFolders/TableFoldersInfiniteScroll.tsx";
function _TableFoldersInfiniteScroll(props) {
  const {
    state: {
      showFoldersSection,
      showItemsSection,
      collections
    }
  } = props;
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, showFoldersSection && /*#__PURE__*/_react.default.createElement(_PageInfiniteScrollLoader.PageInfiniteScrollLoader, {
    state: collections.folders,
    scrollMoreAlways: true,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 29,
      columnNumber: 9
    }
  }), showItemsSection && /*#__PURE__*/_react.default.createElement(_PageInfiniteScrollLoader.PageInfiniteScrollLoader, {
    state: collections.items,
    scrollMoreAlways: true,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 36,
      columnNumber: 9
    }
  }));
}
const TableFoldersInfiniteScroll = exports.TableFoldersInfiniteScroll = (0, _mobxReactLite.observer)(_TableFoldersInfiniteScroll);
//# sourceMappingURL=TableFoldersInfiniteScroll.js.map