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

var _ButtonSort2 = _interopRequireDefault(_ButtonSort);

var _ButtonSortKnobs = require('./ButtonSort.knobs.options');

var _ButtonSortKnobs2 = _interopRequireDefault(_ButtonSortKnobs);

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

(0, _react3.storiesOf)('atoms/buttons', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('ButtonSort', function () {
  var props = {
    text: (0, _addonKnobs.text)('text', 'Date'),
    direction: (0, _addonKnobs.select)('direction', _ButtonSortKnobs2.default.direction, '')
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _ButtonSort2.default });