import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { action } from '@storybook/addon-actions' ; import { CapturePasswordDialogContent as Component , Props , } from './CapturePasswordDialogContent' ; import { passwordToKey , seedToId } from '../../__fixtures__/wallet' ; const meta = { title : 'Atoms/Capture Password' , component : Component } ; export default meta ; const Template = ( args ) => < Component { ... args } / > ; export const CapturePassword = Template . bind ( { } ) ; CapturePassword . args = { passwordToKey , seedToId , setDialogState : ( state ) => { action ( 'setDialogState' ) ( state ) ; } } ;