"use client"; import { useEffect, useState } from "react"; import { cn } from "@/lib/utils"; interface Footer10Props { className?: string; } const Footer10 = ({ className }: Footer10Props) => { const [time, setTime] = useState(""); useEffect(() => { const updateLondonTime = () => { const options: Intl.DateTimeFormatOptions = { timeZone: "Europe/London", hour: "2-digit" as const, minute: "2-digit" as const, second: "2-digit" as const, }; const londonTime = new Intl.DateTimeFormat("fa-IR", options).format( new Date(), ); setTime(londonTime); }; updateLondonTime(); const intervalId = setInterval(updateLondonTime, 1000); return () => clearInterval(intervalId); }, []); return (
); }; export { Footer10 };