"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getScrollContainer = void 0;

var _isFunction = _interopRequireDefault(require("lodash/isFunction"));

var getScrollContainer = function getScrollContainer(scrollContainer) {
  var container = (0, _isFunction.default)(scrollContainer) ? scrollContainer() : scrollContainer;
  return container || window;
};

exports.getScrollContainer = getScrollContainer;