// @flow
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';

import { Range } from './index';

const DEFAULT_PROPS = {
  selectedScore: 5,
  permittedScores: [1, 2, 3, 4, 5, 6, 7, 8],
  onRangeChange: action('onChange'),
  minLabel: 'Test',
  maxLabel: 'Label',
};
storiesOf('Core/Forms/Range', module).add('default', () => (
  <Range {...DEFAULT_PROPS} />
));
