import { Astal, Gdk } from "astal/gtk4"; import Notifd from "gi://AstalNotifd"; import { bind } from "astal"; import { NotificationWidget } from "./notification"; export const WINDOW_NAME = "notifications"; export const Notifications = (gdkmonitor: Gdk.Monitor) => { const notifd = Notifd.get_default(); const { TOP, RIGHT } = Astal.WindowAnchor; return ( notifications.length > 0, )} > {bind(notifd, "notifications").as((notifications) => notifications.map((n) => ), )} ); };