* 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.
18 lines
536 B
TypeScript
18 lines
536 B
TypeScript
import { Notification } from "types/service/notifications.js";
|
|
import { getNotificationIcon } from "globals/notification.js";
|
|
|
|
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",
|
|
icon: getNotificationIcon(app_name, app_icon, app_entry)
|
|
}),
|
|
});
|
|
};
|
|
|
|
export { NotificationIcon };
|