import React from 'react' ; import { Meta , Story } from '@storybook/react' ; import { action } from '@storybook/addon-actions' ; import { UniversalWalletCard as Component , Props } from './UniversalWalletCard' ; import { emptyWallet , fullWallet } from '../../__fixtures__/wallet' ; const meta = { title : 'Organisms/Wallet' , component : Component } ; export default meta ; const Template = ( args ) => < Component { ... args } / > ; export const Empty = Template . bind ( { } ) ; Empty . args = { wallet : emptyWallet , handleWalletOperation : ( operationId , operationInput ) => { action ( 'use a plugin to handle' ) ( { operationId , operationInput } ) ; } } ; export const Full = Template . bind ( { } ) ; Full . args = { wallet : fullWallet , handleWalletOperation : ( operationId , operationInput ) => { action ( 'use a plugin to handle' ) ( { operationId , operationInput } ) ; } } ;