import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs } from '@storybook/addon-knobs';

// import paragraphOptions from './Paragraph.knob.options';

import UnorderedList from './index';
import UnorderedListDocs from './UnorderedList.md';
import unorderedOptions from './UnorderedList.knob.options';

storiesOf('atoms/lists', module).addDecorator(withKnobs({ escapeHTML: false })).add('UnorderedList', function () {
  var orderedOptionsWithKnobs = Object.assign.apply(Object, Object.entries(unorderedOptions).map(function (_ref) {
    var _ref2;

    var k = _ref[0],
        v = _ref[1];
    return _ref2 = {}, _ref2[k] = v(UnorderedList.defaultProps[k]), _ref2;
  }));
  return React.createElement(UnorderedList, orderedOptionsWithKnobs);
}, { info: UnorderedListDocs });