import AstalNotifd from 'gi://AstalNotifd?version=0.1'; import { Gtk } from 'astal/gtk3'; import { notifHasImg } from './helpers'; import { isAnImage } from 'src/lib/utils'; const ImageItem = ({ notification }: ImageProps): JSX.Element => { if (notification.appIcon && !isAnImage(notification.appIcon)) { return ( ); } return ( ); }; export const Image = ({ notification }: ImageProps): JSX.Element => { if (!notifHasImg(notification)) { return ; } return ( ); }; interface ImageProps { notification: AstalNotifd.Notification; }