import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; import { UseState } from '../../utils/storybook/UseState'; import { RefreshPicker } from './RefreshPicker'; const RefreshSelectStories = storiesOf('UI/RefreshPicker', module); RefreshSelectStories.addDecorator(withCenteredStory); RefreshSelectStories.add('default', () => { return ( {(value, updateValue) => { return ( { action('onIntervalChanged fired')(interval); }} onRefresh={() => { action('onRefresh fired')(); }} /> ); }} ); });