/** * Header — top navigation bar with branding, user info, and connection status. */ import { useAuth } from '../../hooks/useAuth'; import { useGame } from '../../hooks/useGame'; export function Header() { const { handle, displayName, avatarUrl, logout } = useAuth(); const { connected } = useGame(); return (
{/* Branding */}
♔

Checkmate

{/* User controls */} {handle && (
{avatarUrl && ( {displayName )} {displayName ?? handle}
)}
); }