"use strict";

require("./demo3.css");

var _button = _interopRequireDefault(require("../../button"));

var _ = _interopRequireDefault(require(".."));

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

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

var openNotification = function openNotification(type) {
  _["default"].open({
    title: 'Notification Title',
    content: 'This is the content of the notification. This is the content of the notification. This is the content of the notification.',
    type: type
  });
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
  className: "button-row"
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('success');
  }
}, "success"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('warning');
  }
}, "warning"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('error');
  }
}, "error"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('notice');
  }
}, "notice"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('help');
  }
}, "help")), document.getElementById('notification-demo-3'));