'use strict';

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactHtmlParser = require('react-html-parser');

var _reactHtmlParser2 = _interopRequireDefault(_reactHtmlParser);

var _markdownIt = require('markdown-it');

var _markdownIt2 = _interopRequireDefault(_markdownIt);

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

require('./index.css');

require('./markdown.css');

var _README = require('../README.md');

var _README2 = _interopRequireDefault(_README);

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

var md = new _markdownIt2.default();
var result = md.render(_README2.default);

(0, _react3.storiesOf)('about|mayflower-react', module).add('Welcome🎉', function () {
  return _react2.default.createElement(
    'div',
    { className: 'main-content main-content--two' },
    _react2.default.createElement(
      'div',
      { className: 'page-content' },
      _react2.default.createElement(
        'div',
        { className: 'markdown-body' },
        (0, _reactHtmlParser2.default)(result)
      )
    )
  );
});