@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
16 lines (15 loc) • 494 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useSideNavRef = useSideNavRef;
var _react = require("react");
var _sideNavRefContext = require("./side-nav-ref-context");
/**
* Returns a ref for the side navigation that is accessible to other Page Layout slots.
*
* Used by the Panel to measure the SideNav when it is calculating its resize bounds.
*/
function useSideNavRef() {
return (0, _react.useContext)(_sideNavRefContext.SideNavRefContext);
}