import { Fragment, VNode, h } from "preact" import { Attention, useNotifications } from "../index.browser.js" export function GlobalNotificationsBanner(): VNode { const notifs = useNotifications() if (notifs.length === 0) return return
{ notifs.map(n => { switch (n.message.type) { case "error": return { n.remove() }}> {n.message.description &&
{n.message.description}
} {/* */}
case "info": return { n.remove(); }} /> } })}
}