@atlaskit/navigation-system
Version:
The latest navigation system for Atlassian apps.
10 lines (9 loc) • 361 B
JavaScript
import { useContext } from 'react';
import { IsSideNavShortcutEnabledContext } from './is-side-nav-shortcut-enabled-context';
/**
* Returns the value of the `isSideNavShortcutEnabled` prop from the `Root` component, which
* is shared through context.
*/
export function useIsSideNavShortcutEnabled() {
return useContext(IsSideNavShortcutEnabledContext);
}