'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

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

var _addonActions = require('@storybook/addon-actions');

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

var _index2 = _interopRequireDefault(_index);

var _TabsKnobs = require('./Tabs.knobs.options');

var _TabsKnobs2 = _interopRequireDefault(_TabsKnobs);

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

(0, _react3.storiesOf)('molecules', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Tabs', function () {
  var props = {
    tabs: (0, _addonKnobs.object)('tabs', _TabsKnobs2.default.tabValues),
    handleClick: (0, _addonActions.action)('tab clicked'),
    selectedTab: (0, _addonKnobs.select)('selectedTab', _TabsKnobs2.default.tabValues.map(function (tab) {
      return tab.value;
    }), 'all')
  };
  return _react2.default.createElement(_index2.default, props);
});