import React from 'react' ; import { storiesOf } from '@storybook/react' ; import { action } from '@storybook/addon-actions' ; import { PayPalCheckoutButton } from '../PayPalCheckoutButton' ; import { withDigitalWallet } from '../DigitalWalletProvider' ; const emptyOnPress = ( ) => { return ; } ; const PayPalButtonWrapper = ( props ) => { return ( < PayPalCheckoutButton shape = { 'pill' } theme = { 'gold' } tagLine = { 'PayPal Tagline' } title = { '' } onPress = { emptyOnPress } / > ) ; } ; const PayPalButtonWithWallet = withDigitalWallet ( PayPalButtonWrapper ) ; storiesOf ( 'PayPalButton' , module ) . add ( 'basic usage' , ( ) => ( < PayPalButtonWithWallet payPalMerchantIdentifier = 'com.bb.test' payPalOnPress = { action ( 'Pay' ) } / > ) ) ;