"use strict";

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

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

var _numberPicker = _interopRequireDefault(require("../../number-picker"));

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

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

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

var duration = 4500;

var openNotification = function openNotification() {
  var args = {
    title: 'Notification Title',
    content: 'I will never close automatically. I will be close automatically. I will never close automatically.',
    duration: duration
  };

  _["default"].open(args);
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_numberPicker["default"], {
  defaultValue: duration,
  onChange: function onChange(v) {
    return duration = v || 0;
  }
}), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: openNotification,
  style: {
    marginLeft: 20
  }
}, "Open Notification")), document.getElementById('notification-demo-2'));