'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

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

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

var _ = require('../../../..');

var _2 = _interopRequireDefault(_);

var _Table = require('./Table.md');

var _Table2 = _interopRequireDefault(_Table);

var _TableKnobs = require('./Table.knobs.options');

var _TableKnobs2 = _interopRequireDefault(_TableKnobs);

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

(0, _react3.storiesOf)('atoms/table', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Table', function () {
  _TableKnobs2.default.feeTable = (0, _addonKnobs.object)('feeTable', _TableKnobs2.default.feeTable);
  var tableProps = JSON.parse(JSON.stringify(_TableKnobs2.default));
  tableProps.id = (0, _addonKnobs.text)('id', _TableKnobs2.default.id);
  return _react2.default.createElement(_2.default, tableProps.feeTable);
}, { info: _Table2.default });