author BounceCode, Inc.
 *  packageDocumentation import * as React from 'react' ; import { AdminLayoutModule } from '.' ; import { action } from '@storybook/addon-actions' ; import { withKnobs , text } from '@storybook/addon-knobs' ; export default { title : 'Layouts/AdminLayout' , component : AdminLayoutModule , decorators : [ withKnobs ] , } ; export const LayoutModule = ( ) => { const data = { me : { id : 1 , email : text ( 'Email' , 'test@example.com' ) , isAdmin : false , createdDate : new Date ( ) , updatedDate : new Date ( ) , } , } ; return ( < AdminLayoutModule data = { data } handleLogout = { action ( 'handleLogout' ) } / > ) ; } ;