import React from 'react' ; import { Story , Meta } from '@storybook/react' ; import { Header , HeaderProps } from './Header' ; export default { title : 'Example/Header' , component : Header , } as Meta ; const Template = ( args ) => < Header { ... args } / > ; export const LoggedIn = Template . bind ( { } ) ; LoggedIn . args = { user : { } , } ; export const LoggedOut = Template . bind ( { } ) ; LoggedOut . args = { } ;