mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2025-10-10 12:51:54 +05:30
13 lines
282 B
TypeScript
13 lines
282 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("%a %b %d - %I:%M:%S %p")!,
|
|
);
|
|
|
|
return <label cssClasses={["pill"]} label={time} />;
|
|
};
|