import React from 'react' import { storiesOf } from '@storybook/react' import { State, Store } from '@sambego/storybook-state' import { Dropdown } from 'components/UI' storiesOf('Components', module).addWithChapters('Dropdown', { chapters: [ { sections: [ { title: 'Left justify (default)', sectionFn: () => { const store = new Store({ crypto: 'btc', cryptoCurrencies: [ { key: 'btc', name: 'BTC' }, { key: 'bits', name: 'bits' }, { key: 'sats', name: 'satoshis' } ] }) return ( store.set({ crypto })} /> ) } }, { title: 'Right justify', sectionFn: () => { const store = new Store({ fiat: 'usd', fiatCurrencies: [ { key: 'usd', name: 'USD' }, { key: 'eur', name: 'EUR' }, { key: 'gbp', name: 'GBP' } ] }) return ( store.set({ fiat })} justify="right" /> ) } } ] } ] })