'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 _index3 = require('../FootNote/index');

var _index4 = _interopRequireDefault(_index3);

var _FootNoteLink = require('./FootNoteLink.md');

var _FootNoteLink2 = _interopRequireDefault(_FootNoteLink);

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

(0, _react3.storiesOf)('atoms/links', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('FootNoteLink', function () {
  var props = {
    index: (0, _addonKnobs.text)('index', '1')
  };
  var rawHtml = 'This is the footnote <a href="#">(reference)</a>.';
  return _react2.default.createElement(
    'div',
    null,
    _react2.default.createElement(
      'p',
      null,
      'This is where the footnote would be referenced. ',
      _react2.default.createElement(_index2.default, { index: props.index }),
      ' '
    ),
    _react2.default.createElement(
      _index4.default,
      { index: props.index },
      rawHtml
    )
  );
}, { info: _FootNoteLink2.default });