Convert all remaining files to typescript.
This commit is contained in:
13
modules/menus/notifications/notification/close/index.ts
Normal file
13
modules/menus/notifications/notification/close/index.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Notification, Notifications } from "types/service/notifications";
|
||||
export const CloseButton = (notif: Notification, notifs: Notifications) => {
|
||||
return Widget.Button({
|
||||
class_name: "close-notification-button menu",
|
||||
on_primary_click: () => {
|
||||
notifs.CloseNotification(notif.id);
|
||||
},
|
||||
child: Widget.Label({
|
||||
label: "",
|
||||
hpack: "center",
|
||||
}),
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user