/**
* Header component - application header with navigation and controls
*/
import { useState } from 'react';
interface HeaderProps {
isTimelineMode: boolean;
onToggleTimeline: () => void;
bodyCount: number;
selectedBodyName?: string;
}
export function Header({
isTimelineMode,
onToggleTimeline,
bodyCount,
selectedBodyName
}: HeaderProps) {
const [showLoginModal, setShowLoginModal] = useState(false);
return (
<>
宇宙星空可视化平台
{selectedBodyName ? (
<>
● 聚焦: {selectedBodyName}
>
) : (
<>
● {bodyCount} 个天体
>
)}
Cosmo