diff --git a/artifacts/tx-os/src/pages/executive-meetings.tsx b/artifacts/tx-os/src/pages/executive-meetings.tsx index 2340986d..4136d3cc 100644 --- a/artifacts/tx-os/src/pages/executive-meetings.tsx +++ b/artifacts/tx-os/src/pages/executive-meetings.tsx @@ -43,6 +43,7 @@ import { ChevronLeft, ChevronRight, Search, + Clock, } from "lucide-react"; import { Collapsible, CollapsibleTrigger, CollapsibleContent } from "@/components/ui/collapsible"; import { Button } from "@/components/ui/button"; @@ -758,6 +759,33 @@ export default function ExecutiveMeetingsPage() { ); } +function HeaderClock({ lang }: { lang: "ar" | "en" }) { + const [now, setNow] = useState(() => new Date()); + useEffect(() => { + const id = window.setInterval(() => setNow(new Date()), 1000); + return () => window.clearInterval(id); + }, []); + const formatter = useMemo( + () => + new Intl.DateTimeFormat(lang === "ar" ? "ar" : "en", { + hour: "numeric", + minute: "2-digit", + hour12: true, + }), + [lang], + ); + return ( +
+ + {formatter.format(now)} +
+ ); +} + function ExecutiveMeetingsPageInner() { const { t, i18n } = useTranslation(); const [, setLocation] = useLocation(); @@ -885,6 +913,7 @@ function ExecutiveMeetingsPageInner() {
+