"use strict";

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 key = 'updatable';

var openNotification = function openNotification() {
  _["default"].open({
    key: key,
    title: 'Notification Title',
    content: 'description.'
  });

  setTimeout(function () {
    _["default"].open({
      key: key,
      title: 'New Title',
      content: 'New description.'
    });
  }, 1000);
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: openNotification
}, "Open Notification"), document.getElementById('notification-demo-6'));