"use strict";

exports.__esModule = true;
exports.usePopoverNextContext = void 0;
var _react = require("react");
var _PopoverNext = require("../PopoverNext.context");
var usePopoverNextContext = () => {
  var context = (0, _react.useContext)(_PopoverNext.PopoverNextContext);
  if (context === null) {
    throw new Error('<PopoverNext.Trigger /> and <PopoverNext.Content /> components must be wrapped with <PopoverNext />');
  }
  return context;
};
exports.usePopoverNextContext = usePopoverNextContext;
//# sourceMappingURL=usePopoverNextContext.js.map