mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 21:01:54 +05:30
13 lines
268 B
TypeScript
13 lines
268 B
TypeScript
import { createPoll } from "ags/time";
|
|
import GLib from "gi://GLib";
|
|
|
|
export const Time = () => {
|
|
const time = createPoll(
|
|
"",
|
|
1000,
|
|
() => GLib.DateTime.new_now_local().format("%I:%M %p")!,
|
|
);
|
|
|
|
return <label cssClasses={["pill"]} label={time} />;
|
|
};
|