@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
15 lines (14 loc) • 540 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useIsSideNavShortcutEnabled = useIsSideNavShortcutEnabled;
var _react = require("react");
var _isSideNavShortcutEnabledContext = require("./is-side-nav-shortcut-enabled-context");
/**
* Returns the value of the `isSideNavShortcutEnabled` prop from the `Root` component, which
* is shared through context.
*/
function useIsSideNavShortcutEnabled() {
return (0, _react.useContext)(_isSideNavShortcutEnabledContext.IsSideNavShortcutEnabledContext);
}