text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.usePaneLayout = usePaneLayout;
  
  var _react = require("react");
  
  var _PaneLayoutContext = require("./PaneLayoutContext");
  
  /**
   * @beta This API will change. DO NOT USE IN PRODUCTION.
   */
  function usePaneLayout() {
    var pane = (0, _react.useContext)(_PaneLayoutContext.PaneLayoutContext);
  
    if (!pane) {
      throw new Error('PaneLayout: missing context value');
    }
  
    return pane;
  }