import React from 'react';
import {storiesOf} from '@storybook/react';
import {action} from '@storybook/addon-actions';
import {boolean, text} from '@storybook/addon-knobs';

import Switch from '../../Components/Switch/src';

export default storiesOf('Components | Switch', module)
  .add('default', () => (
    <Switch
      onChange={action('on changed')}
      model={boolean('Model', true)}
      elementId={text('id', 'id')}
      activeStyle={text('Active style', '')}
      commonStyle={text('Common style', '')}
      isDisabled={boolean('Disabled', false)}
    />
  ));
