import { Astal, Gdk, Gtk } from "ags/gtk4"; import app from "ags/gtk4/app"; import { Footer } from "./footer"; import { Header } from "./header"; import { NotificationList } from "./notification-list"; import { SlidingControls } from "./sliding-controls"; import { SystemInfo } from "./system-info"; import { onCleanup } from "ags"; export const WINDOW_NAME = "control-center"; export const ControlCenter = ({ gdkmonitor }: { gdkmonitor: Gdk.Monitor }) => { const { TOP, BOTTOM, RIGHT } = Astal.WindowAnchor; const { VERTICAL } = Gtk.Orientation; return ( onCleanup(() => self.destroy())} >