UNPKG

@sanity/desk-tool

Version:

Tool for managing all sorts of content in a structured manner

18 lines (17 loc) 467 B
"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; }