import { useMemo } from 'react' import { MapPin, AlertTriangle, AlertCircle } from 'lucide-react' import type { MilitarySituation } from '@/data/mockData' interface BaseStatusPanelProps { keyLocations: MilitarySituation['usForces']['keyLocations'] className?: string } export function BaseStatusPanel({ keyLocations, className = '' }: BaseStatusPanelProps) { const stats = useMemo(() => { const bases = (keyLocations || []).filter((loc) => loc.type === 'Base') const total = bases.length let attacked = 0 let severe = 0 let moderate = 0 let light = 0 for (const b of bases) { const s = b.status ?? 'operational' if (s === 'attacked') attacked++ const lvl = b.damage_level if (lvl === 3) severe++ else if (lvl === 2) moderate++ else if (lvl === 1) light++ } return { total, attacked, severe, moderate, light } }, [keyLocations]) return (