'use client'; import { useSidebar } from '@/components/layout/SidebarContext'; import { Box } from '@/ui/Box'; import { Link } from '@/ui/Link'; import { ShellFooter } from '@/ui/shell/Shell'; import { Text } from '@/ui/Text'; import { useEffect, useState } from 'react'; export function AppFooter() { const { isCollapsed } = useSidebar(); // Clock const [time, setTime] = useState(''); useEffect(() => { const updateTime = () => { const now = new Date(); setTime(now.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit', hour12: false })); }; updateTime(); const interval = setInterval(updateTime, 60000); return () => clearInterval(interval); }, []); return ( {/* Left: System Info */} GRIDPILOT {/* Center: Time */} {time} UTC {/* Right: Legal & Tools */} Terms Privacy Status ); } function FooterLink({ href, children }: { href: string, children: React.ReactNode }) { return ( {children} ); }