'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _react3 = require('@storybook/react');

var _addonKnobs = require('@storybook/addon-knobs');

var _index = require('./index');

var _index2 = _interopRequireDefault(_index);

var _LinkKnob = require('./Link.knob.options');

var _LinkKnob2 = _interopRequireDefault(_LinkKnob);

var _Link = require('./Link.md');

var _Link2 = _interopRequireDefault(_Link);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

(0, _react3.storiesOf)('molecules', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Link', function () {
  var optionsWithKnobs = Object.assign.apply(Object, Object.entries(_LinkKnob2.default).map(function (_ref) {
    var _ref2;

    var k = _ref[0],
        v = _ref[1];
    return _ref2 = {}, _ref2[k] = v(_index2.default.defaultProps[k]), _ref2;
  }));
  return _react2.default.createElement(_index2.default, optionsWithKnobs);
}, { info: _Link2.default });