27 lines
752 B
JavaScript
27 lines
752 B
JavaScript
import DropdownMenu from "../DropdownMenu.js";
|
|
const notifs = await Service.import("notifications");
|
|
import { Controls } from "./controls/index.js";
|
|
import { NotificationCard } from "./notification/index.js";
|
|
|
|
export default () => {
|
|
return DropdownMenu({
|
|
name: "notificationsmenu",
|
|
transition: "crossfade",
|
|
child: Widget.Box({
|
|
class_name: "notification-menu-content",
|
|
css: "padding: 1px; margin: -1px;",
|
|
hexpand: true,
|
|
vexpand: false,
|
|
children: [
|
|
Widget.Box({
|
|
class_name: "notification-card-container menu",
|
|
vertical: true,
|
|
hexpand: false,
|
|
vexpand: false,
|
|
children: [Controls(notifs), NotificationCard(notifs)],
|
|
}),
|
|
],
|
|
}),
|
|
});
|
|
};
|