refactor and add modules directory

This commit is contained in:
wt committed 2025-03-10 21:51:05 +07:00
1 parent b272840eae
commit 8f5ad70ed3
13 files changed
+209 -90

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
import { Variable, GLib } from "astal"
export default function Time({ format = "%H:%M - %A %e" }) {
const time = Variable<string>("").poll(1000, () =>
GLib.DateTime.new_now_local().format(format)!)
return <label
className="Time"
onDestroy={() => time.drop()}
label={time()}
/>
}