"use strict";

exports.__esModule = true;
exports.ScrollableContentContext = void 0;
exports.useScrollableContentContext = useScrollableContentContext;
var _react = require("react");
var _designSystem = require("@wix/design-system");
const ScrollableContentContext = exports.ScrollableContentContext = /*#__PURE__*/(0, _react.createContext)(null);
function useScrollableContentContext() {
  const value = (0, _react.useContext)(ScrollableContentContext);
  const pageScrollContext = (0, _designSystem.usePageScrollContext)();
  if (value != null) {
    return value;
  }
  return pageScrollContext;
}
//# sourceMappingURL=ScrollableContentContext.js.map