import React, { useContext } from 'react'; import { storiesOf } from '@storybook/react'; import { Nav, NavItem, NavList, PageSidebar, Page, PageHeader, PageHeaderTools, PageHeaderToolsItem } from '@patternfly/react-core'; import { RealmSelector } from '../src/components/realm-selector/RealmSelector'; import { Help, HelpContext, HelpHeader } from '../src/components/help-enabler/HelpHeader'; storiesOf('Toolbar') .add('realm selector', () => { return ( Link 1 Current link Link 3 Link 4 } /> } /> ); }) .add('help system', () => { return ( ); }); const HelpSystemTest = () => { const { enabled } = useContext(HelpContext); return ( dummy user... } />}> Help system is {enabled ? 'enabled' : "not on, guess you don't need help"} ); }