From 828da2ce9e88c6a0cc0c33f22f764c4283a1f651 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Thu, 16 Jan 2025 23:17:31 +1100 Subject: base popdown window --- src/widgets/popdownwindow.tsx | 44 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/widgets/popdownwindow.tsx (limited to 'src/widgets/popdownwindow.tsx') diff --git a/src/widgets/popdownwindow.tsx b/src/widgets/popdownwindow.tsx new file mode 100644 index 0000000..8710a59 --- /dev/null +++ b/src/widgets/popdownwindow.tsx @@ -0,0 +1,44 @@ +import type { Binding } from "astal"; +import { Gtk } from "astal/gtk3"; +import PopupWindow from "./popupwindow"; + +export default ({ + name, + count, + headerButtons, + emptyIcon, + emptyLabel, + list, +}: { + name: string; + count: Binding; + headerButtons: { label: string; onClicked: () => void; className?: Binding }[]; + emptyIcon: string; + emptyLabel: string; + list: JSX.Element; +}) => ( + + + +