import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import Button from '@material-ui/core/Button' ; import { action } from '@storybook/addon-actions' ; import { FullscreenDialog as Component , Props , } from '../../../atoms/FullscreenDialog' ; import { CapturePasswordDialogContent } from '../../../atoms/CapturePasswordDialog/CapturePasswordDialogContent' ; import { seedToId , passwordToKey } from '../../../__fixtures__/wallet' ; const meta = { title : 'Molecules/Dialogs/Generate/Dialog' , component : Component } ; export default meta ; const Template = ( args ) => < Component { ... args } / > ; export const Dialog = Template . bind ( { } ) ; Dialog . args = { dialogTrigger : < Button > trigger < /Button>, dialogTitle : 'Generate' , dialogSubmitTitle : 'Generate' , dialogContent : ( < CapturePasswordDialogContent seedToId = { seedToId } passwordToKey = { passwordToKey } setDialogState = { ( state ) => { action ( 'setDialogState' ) ( state ) ; } } />), handleSubmit : async ( ) => { action ( 'handleSubmit' ) ( ) ; } , handleCancel : async ( ) => { action ( 'handleCancel' ) ( ) ; } } ;