import { h, Fragment, VNode } from "preact";
import { Attention } from "./Attention.js";
import { Notification } from "../index.browser.js";
// import { useSettings } from "../hooks/settings.js";
export function LocalNotificationBanner({ notification }: { notification?: Notification }): VNode {
if (!notification) return
switch (notification.message.type) {
case "error":
return
{
notification.remove()
}}>
{notification.message.description &&
{notification.message.description}
}
{/* */}
case "info":
return
{
notification.remove();
}} />
}
}
// function MaybeShowDebugInfo({ info }: { info: any }): VNode {
// const [settings] = useSettings()
// if (settings.showDebugInfo) {
// return
// {info}
//
// }
// return
// }