import React from 'react';
import { storiesOf } from '@storybook/react';
import { Form, Field } from 'react-final-form';
import { text, object, color, dom, array } from '@storybook/addon-knobs';
import TimeslotsInput from './index';

storiesOf('seed/formItems/TimeslotsInput', module)
  .addDecorator(story => {
    const Wrapper = <Form onSubmit={() => {}} render={story} />;
    return <Wrapper />;
  })
  .add('Normal', () => <Field name="test" component={TimeslotsInput} label="test" />);
