import { UserAuth } from './UserAuth'; interface HeaderProps { selectedBodyName?: string; bodyCount: number; user?: any; onOpenAuth?: () => void; onLogout?: () => void; onNavigateToAdmin?: () => void; } export function Header({ selectedBodyName, bodyCount, user, onOpenAuth, onLogout, onNavigateToAdmin }: HeaderProps) { return (
{/* Left: Branding */}
🌌

Cosmo

DEEP SPACE EXPLORER

{/* Status Info */}

{selectedBodyName ? ( <> 聚焦: {selectedBodyName} ) : ( <> {bodyCount} 个天体在线 )}

{/* Right: User Auth */} {onOpenAuth && ( )}
); }