"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ReactPopperContext = void 0;
var _react = _interopRequireDefault(require("react"));
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
/* This context is added in scope of the task https://datarobot.atlassian.net/browse/UIUX-9023. We use this
 * context to prevent nested poppers rendering issue when child poppers rendered in the another place on a screen.
 * In child poppers is called notifyParentPopper which set popper's property to hasChildPopper to true and
 * forces invoking popper's forceUpdate in the parent. And we don't need to pass forceUpdateAfterOpen props
 * for this goal. */
const ReactPopperContext = exports.ReactPopperContext = /*#__PURE__*/_react.default.createContext({
  hasParentPopper: false,
  notifyParentPopper() {}
});
ReactPopperContext.displayName = 'ReactPopperContext';