"use strict";

require("./demo4.css");

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

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

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

var _2 = require("../..");

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

var showSuccess = function showSuccess() {
  return _["default"].show({
    type: 'success',
    title: 'success',
    closeable: true,
    duration: 0
  });
};

var showWarning = function showWarning() {
  return _["default"].warning('warning');
};

var showError = function showError() {
  return _["default"].error({
    title: 'error',
    duration: 0
  });
};

var showNotice = function showNotice() {
  return _["default"].notice({
    title: 'notice',
    closeable: true,
    duration: 0
  });
};

var showHelp = function showHelp() {
  return _["default"].help({
    title: 'message',
    content: 'helphelphelphelphelphelphelphelphelphelphelphelp',
    closeable: true,
    duration: 0
  });
};

var showLoading = function showLoading() {
  return _["default"].loading({
    content: 'loadingloadingloadingloadingloading',
    closeable: true,
    duration: 0
  });
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
  className: "message-toast-quick-demo"
}, /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showSuccess
}, "\u53EF\u5173\u95EDsuccess"), /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showWarning
}, "\u4FBF\u6377warning"), /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showError
}, "\u4E0D\u53EF\u5173\u95EDerror"), /*#__PURE__*/_react["default"].createElement("br", null), /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showNotice
}, "\u53EF\u5173\u95EDnotice"), /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showHelp
}, "\u6807\u9898+\u5185\u5BB9help"), /*#__PURE__*/_react["default"].createElement(_2.Button, {
  type: "primary",
  onClick: showLoading
}, "\u5185\u5BB9loading")), document.getElementById('message-demo-3'));