"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
exports.__esModule = true;
exports.InfiniteScrollLoader = void 0;
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
var _react = _interopRequireDefault(require("react"));
var _designSystem = require("@wix/design-system");
var _mobxReactLite = require("mobx-react-lite");
var _InfiniteScrollLoaderBase = require("./InfiniteScrollLoaderBase");
var _PatternsThemeProvider = require("../../themes/PatternsThemeProvider");
var _jsxFileName = "/home/builduser/work/843658b9f44192f0/packages/cairo/dist/cjs/components/InfiniteScrollLoader/InfiniteScrollLoader.tsx";
const InfiniteScrollLoader = exports.InfiniteScrollLoader = (0, _mobxReactLite.observer)(function Table({
  state,
  targetRef,
  ...rest
}) {
  const {
    loader
  } = (0, _PatternsThemeProvider.usePatternsTheme)();
  return /*#__PURE__*/_react.default.createElement(_InfiniteScrollLoaderBase.InfiniteScrollLoaderBase, {
    state: state,
    targetRef: targetRef,
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 21,
      columnNumber: 5
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Box, {
    align: "center",
    padding: "large",
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 22,
      columnNumber: 7
    }
  }, /*#__PURE__*/_react.default.createElement(_designSystem.Loader, (0, _extends2.default)({
    size: loader == null ? void 0 : loader.size
  }, rest, {
    __self: this,
    __source: {
      fileName: _jsxFileName,
      lineNumber: 23,
      columnNumber: 9
    }
  }))));
});
//# sourceMappingURL=InfiniteScrollLoader.js.map