* Implement strict typing (WIP). * changes * Finish type checks * Fix notification icon, matugen settings and update tsconfig. * OSD Styling updates and added the ability to configure OSD duration.
19 lines
615 B
TypeScript
19 lines
615 B
TypeScript
import { Notification } from "types/service/notifications.js";
|
|
import { NotificationIcon } from "lib/types/notification.js";
|
|
import { getNotificationIcon } from "globals/notification";
|
|
|
|
const NotificationIcon = ({ app_entry = "", app_icon = "", app_name = "" }: Partial<Notification>) => {
|
|
return Widget.Box({
|
|
css: `
|
|
min-width: 2rem;
|
|
min-height: 2rem;
|
|
`,
|
|
child: Widget.Icon({
|
|
class_name: "notification-icon menu",
|
|
icon: getNotificationIcon(app_name, app_icon, app_entry),
|
|
}),
|
|
});
|
|
};
|
|
|
|
export { NotificationIcon };
|