Modularized notification toast and menu components.
This commit is contained in:
12
modules/menus/notifications/notification/close/index.js
Normal file
12
modules/menus/notifications/notification/close/index.js
Normal file
@@ -0,0 +1,12 @@
|
||||
export const CloseButton = (notif, notifs) => {
|
||||
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