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

var _ErrorMessage2 = _interopRequireDefault(_ErrorMessage);

var _ErrorMessageKnobs = require('./ErrorMessage.knobs.options');

var _ErrorMessageKnobs2 = _interopRequireDefault(_ErrorMessageKnobs);

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

(0, _react3.storiesOf)('forms|atoms', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('ErrorMessage', function () {
  var props = {
    inputId: (0, _addonKnobs.text)('inputID', _ErrorMessageKnobs2.default.inputId),
    error: (0, _addonKnobs.text)('error', _ErrorMessageKnobs2.default.error),
    success: (0, _addonKnobs.text)('success'),
    status: (0, _addonKnobs.select)('status', _ErrorMessageKnobs2.default.status, 'error')
  };
  return _react2.default.createElement(_index2.default, props);
}, { info: _ErrorMessage2.default });