import { Astal, Gtk } from "ags/gtk4"; import { createBinding, For } from "ags"; import { Notifications } from "../scripts/notifications"; import { NotificationWidget } from "../widget/Notification"; import { variableToBoolean } from "../scripts/utils"; import AstalNotifd from "gi://AstalNotifd?version=0.1"; export const FloatingNotifications = (mon: number) => {(notif: AstalNotifd.Notification) => Notifications.getDefault().removeNotification(notif)} holdOnHover={true} actionClicked={() => { const viewAction = notif.actions.filter(action => action.label.toLowerCase() === "view")?.[0]; viewAction && notif.invoke(viewAction.id); }} /> } as Astal.Window;