import { Binding, Variable } from "astal"; import { Gtk } from "astal/gtk4"; import AstalApps from "gi://AstalApps"; import Pango from "gi://Pango?version=1.0"; const MAX_ITEMS = 8; const AppList = ({ hide, query, visible }: { hide: () => void, query: Variable, visible: Binding }) => { const apps = new AstalApps.Apps(); const list = query((text) => apps.fuzzy_query(text).slice(0, MAX_ITEMS)); return l.length > 0)} > {list.as(l => l.map(app => ))} l.length === 0)} > } const AppButton = ({ app, hide }: { app: AstalApps.Application, hide: () => void }) => { return } export default AppList;