'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 _SortResults = require('./SortResults.md');

var _SortResults2 = _interopRequireDefault(_SortResults);

var _SortResultsKnobs = require('./SortResults.knobs.options');

var _SortResultsKnobs2 = _interopRequireDefault(_SortResultsKnobs);

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

(0, _react3.storiesOf)('molecules', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('SortResults', function () {
  var props = {
    label: (0, _addonKnobs.text)('label', 'Sort by:'),
    sortButtons: (0, _addonKnobs.object)('sortButtons', _SortResultsKnobs2.default.sortButtons)
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _SortResults2.default });