import { h, Fragment, VNode } from "preact"; import { Attention } from "./Attention.js"; import { Notification } from "../index.browser.js"; export function LocalNotificationBanner({ notification, showDebug }: { notification?: Notification, showDebug?: boolean }): VNode { if (!notification) return switch (notification.message.type) { case "error": return
{ notification.acknowledge() }}> {notification.message.description &&
{notification.message.description}
} {showDebug &&
              {notification.message.debug}
            
}
case "info": return
{ notification.acknowledge(); }} />
} }