import Button from '../../button';
import Notification from '..';
import React from 'react';
import ReactDOM from 'react-dom';

const openNotification = () => {
  const args = {
    title: 'Notification Title',
    content:
      'I will never close automatically. I will be close automatically. I will never close automatically.',
    icon: 'smile',
  };
  Notification.open(args);
};


ReactDOM.render(
  <div>
    <Button
      type="primary"
      onClick={openNotification}
      style={{ marginLeft: 20 }}
    >
      Open Notification
    </Button>
  </div>,
  document.getElementById('notification-demo-4'),
);
