import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { withCenteredStory } from '../../utils/storybook/withCenteredStory'; import { TimePickerCalendar } from './TimePickerCalendar'; import { UseState } from '../../utils/storybook/UseState'; import { TimeFragment } from '@grafana/data'; const TimePickerCalendarStories = storiesOf('UI/TimePicker/TimePickerCalendar', module); TimePickerCalendarStories.addDecorator(withCenteredStory); TimePickerCalendarStories.add('default', () => ( {(value, updateValue) => { return ( { action('onChange fired')(timeRange); updateValue(timeRange); }} /> ); }} ));