import React from 'react'; interface HeaderProps { isConnected: boolean; gameStarted: boolean; onStartGame: () => void; onOpenRegister: () => void; onQuickSpawn: () => void; onResetBoard: () => void; playerCount: number; isConcluded?: boolean; onOpenScoreboard?: () => void; } export const Header: React.FC = ({ isConnected, gameStarted, onStartGame, onOpenRegister, onQuickSpawn, onResetBoard, playerCount, isConcluded, onOpenScoreboard, }) => { return (
{/* Brand & Stats */}
W

botWebWars v1.0

64×64 Grid Arena • Coords (0,0) to (64,64)

{/* Live status badge */}
{isConnected ? 'LIVE SYNC' : 'CONNECTING...'}
{/* Game Phase Badge */} {!isConcluded && (
{gameStarted ? ( GAME IN PROGRESS ) : ( LOBBY (WAITING TO START) )}
)} {/* Game concluded banner tag */} {isConcluded && (
🏆 GAME CONCLUDED
)}
{/* Action Buttons */}
{/* Start Game Button (Visible during Lobby) */} {!gameStarted && !isConcluded && ( )} {isConcluded && onOpenScoreboard && ( )} API Docs ↗
); };