import { useState, useEffect } from 'react' import { Home, Search } from 'lucide-react' interface TopBarProps { onSearchClick?: () => void } export function TopBar({ onSearchClick }: TopBarProps) { const [currentTime, setCurrentTime] = useState(() => formatTime(new Date())) useEffect(() => { const interval = setInterval(() => { setCurrentTime(formatTime(new Date())) }, 60_000) return () => clearInterval(interval) }, []) return (
{/* Skip to main content link (only visible on focus) */} { e.currentTarget.style.top = '0' }} onBlur={(e) => { e.currentTarget.style.top = '-40px' }} > Skip to main content {/* Brand */}
{/* Search bar (center) — triggers command palette, no inline search */} {/* Session info (right) */}
Dr. A.CHARLWOOD Active Session · {currentTime} {currentTime}
) } function formatTime(date: Date): string { return date.toLocaleTimeString('en-GB', { hour: '2-digit', minute: '2-digit', hour12: false, }) }