import { Gtk } from "astal/gtk4"; import Notifd from "gi://AstalNotifd"; import { fileExists, isIcon } from "../../../util/notifd"; export function NotificationIcon(notification: Notifd.Notification) { if (notification.image || notification.appIcon || notification.desktopEntry) { const icon = notification.image || notification.appIcon || notification.desktopEntry; if (fileExists(icon)) { return ( ); } else if (isIcon(icon)) { return ( ); } } return null; }