"use strict";

var _react = _interopRequireDefault(require("react"));
var _react2 = require("@storybook/react");
var _ThemeProvider = _interopRequireDefault(require("../../../Screens/Configurator/ThemeProvider"));
var _index = _interopRequireDefault(require("./index"));
var _redux = require("redux");
var _reactRedux = require("react-redux");
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
var store = (0, _redux.createStore)(function () {
  var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
  return state;
});
(0, _react2.storiesOf)('Messagebox', module).add('renders with a success message', function () {
  return /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_ThemeProvider["default"], null, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    type: "success",
    text: "I am a nice success message"
  })));
}).add('renders with a warning message', function () {
  return /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_ThemeProvider["default"], null, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    type: "warning",
    text: "I am a nice warning message"
  })));
}).add('renders with a error message', function () {
  return /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_ThemeProvider["default"], null, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    type: "error",
    text: "I am a nice error message"
  })));
}).add('renders with a message with long title', function () {
  return /*#__PURE__*/_react["default"].createElement(_reactRedux.Provider, {
    store: store
  }, /*#__PURE__*/_react["default"].createElement(_ThemeProvider["default"], null, /*#__PURE__*/_react["default"].createElement(_index["default"], {
    type: "success",
    text: "I am a nice success message with a title that will wrap into more than one line, Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ad asperiores dolorum eligendi est necessitatibus odio pariatur praesentium quae saepe voluptatum."
  })));
});