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

var _ErrorPage2 = _interopRequireDefault(_ErrorPage);

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

(0, _react3.storiesOf)('organisms', module).addDecorator((0, _addonKnobs.withKnobs)({ escapeHTML: false })).add('ErrorPage', function () {
  var props = {
    type: (0, _addonKnobs.text)('type', '404'),
    label: (0, _addonKnobs.text)('label', 'Oops'),
    title: (0, _addonKnobs.text)('title', 'We can\'t find that page'),
    message: (0, _addonKnobs.text)('message', 'The link you clicked may be broken or the page may have been removed')
  };
  return _react2.default.createElement(_2.default, props);
}, { info: _ErrorPage2.default });