'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);

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

(0, _react3.storiesOf)('atoms/headings', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('Heading', function () {
  var levelOptions = {
    1: '1',
    2: '2',
    3: '3',
    4: '4',
    5: '5',
    6: '6'
  };
  var props = {
    text: (0, _addonKnobs.text)('text', 'Title text'),
    level: (0, _addonKnobs.select)('level', levelOptions, 1)
  };
  return _react2.default.createElement(_index2.default, props);
});