import React from 'react'; import { storiesOf } from '@storybook/react'; import { text, number } from '@storybook/addon-knobs'; import ButtonQR from './ButtonQR'; import Text from '../Text'; const ButtonText = 'CashTab Pay'; storiesOf('ButtonQR', module) .add( 'default - all knobs', () => ( {ButtonText} ), { notes: 'Button is a stateful controlled component which is the primary visual indicator for the Cashtab payment process' } ) .add( 'payment pending', () => ( {ButtonText} ), { notes: 'Awaiting a confirmation or cancellation of Cashtab popup' } ) .add( 'payment complete', () => ( {ButtonText} ), { notes: 'Payment received, at least on the front-end' } ) .add( 'install prompt', () => ( {ButtonText} ), { notes: 'Cashtab plugin not installed, prompt user to install Cashtab' } );