"use strict";

require("./demo5.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(placement) {
  _["default"].config({
    placement: placement
  });

  _["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.'
  });
};

_reactDom["default"].render( /*#__PURE__*/_react["default"].createElement("div", {
  className: "button-row"
}, /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('tl');
  }
}, "Top Left"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('tr');
  }
}, "Top Right"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('bl');
  }
}, "Bottom Left"), /*#__PURE__*/_react["default"].createElement(_button["default"], {
  type: "primary",
  onClick: function onClick() {
    return openNotification('br');
  }
}, "Bottom Right")), document.getElementById('notification-demo-5'));