import XNode from "../../core/XNode.js"; import { PopupWindow } from "./PopupService.js"; import "./NotificationPopup.global.css"; const css = "web-atoms-notification-popup"; export default function NotificationPopup({ message, type }): typeof PopupWindow { return class Notification extends PopupWindow { public create(): void { if(message instanceof XNode) { this.render(
{ message }
); return; } this.render(
); } }; }