import type { Binding } from "astal"; import { Gtk } from "astal/gtk3"; import PopupWindow from "./popupwindow"; export default ({ name, count, countLabel = count.as(c => `${c} ${name.slice(0, -1)}${c === 1 ? "" : "s"}`), headerButtons, emptyIcon, emptyLabel, list, }: { name: string; count: Binding; countLabel?: Binding; headerButtons: { label: string | Binding; onClicked: () => void; enabled?: Binding }[]; emptyIcon: string; emptyLabel: string | Binding; list: JSX.Element; }) => (