import React from 'react' import { storiesOf } from '@storybook/react' import { StateDecorator, Store } from '@sambego/storybook-state' import { Flex } from 'rebass' import { Button, Dropdown, Form, Input, Label, LightningInvoiceInput, Message, Notification, Range, TextArea, Toggle } from 'components/UI' import { Column, Group, Element } from './helpers' const store = new Store({ crypto: 'btc', fiat: 'usd', cryptoCurrencies: [ { key: 'btc', name: 'BTC' }, { key: 'bits', name: 'bits' }, { key: 'sats', name: 'satoshis' } ], fiatCurrencies: [ { key: 'usd', name: 'USD' }, { key: 'eur', name: 'EUR' }, { key: 'gbp', name: 'GBP' } ] }) storiesOf('Welcome', module) .addDecorator(StateDecorator(store)) .addWithChapters('Zap Style Guide', { subtitle: 'Reusable components for Zap Desktop.', info: `The Zap style guide showcases and documents our library of reusable React components. Below is a sample of these components. You can see more examples and full documentation of each component using the navigation on the left. Use the Theme Picker in the bottom panel to view components in one of our alternate themes.`, chapters: [ { sections: [ { options: { showSource: false, allowSourceToggling: false, showPropTables: false, allowPropTablesToggling: false }, sectionFn: () => ( Error message Success message Warning message Error message Success message Warning message