import notificationDOM from './notification';
import './icons';
let notification;
const notice = (type, content, duration = 2000, onClose) => {
if (!notification) notification = notificationDOM;
return notification.addNotice({type, content, duration, onClose});
};
export default notice;