import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import LoggedInPanel from './LoggedInPanel'; const activeAccount = { id: 1, username: 'MockUser', email: 'mock@ely.by', refreshToken: '', token: '', }; storiesOf('Components/Userbar', module) .addDecorator((storyFn) => (
{storyFn()}
)) .add('LoggedInPanel', () => ( action('onSwitchAccount')(account)} onRemoveAccount={async (account) => action('onRemoveAccount')(account)} /> ));