import { execAsync } from "astal"; import { Gtk } from "astal/gtk4"; import sysinfo from "../sysinfo"; const info = () => { return ( ); }; const SystemInformationPanel = () => { const popover = new Gtk.Popover(); popover.set_child(info()); return popover; }; const panel = SystemInformationPanel(); const SystemInfo = () => { sysinfo.startSysInfoFetcher(); const openSysInfo = async () => { panel.popup(); sysinfo.refreshStats(); }; if (sysinfo.enabled) { return ( ); } else { return ; } }; export default { SystemInfo, panel, };