import React from 'react'; import type { BattleResult } from '../types'; interface BattleModalProps { battle: BattleResult | null; onClose: () => void; } export const BattleModal: React.FC = ({ battle, onClose }) => { if (!battle) return null; return (
{/* Glowing cyber header banner */}
⚔️

PARTY ENGAGEMENT: 3-BOUT D20 CLASH

{battle.party1_name} vs {battle.party2_name}

{/* 3 Bouts Breakdown */}
{battle.bouts.map((bout) => (
BOUT #{bout.bout_number} Winner: {bout.winner_name || 'Tied'}
{/* Party 1 */}
{battle.party1_name}
Str: {bout.party1_strength} × 🎲 {bout.party1_roll} = {bout.party1_score}
{/* Party 2 */}
{battle.party2_name}
Str: {bout.party2_strength} × 🎲 {bout.party2_roll} = {bout.party2_score}
))}
{/* Battle Resolution Summary */}
🏆 VICTORY: {battle.winner_party_name} Bouts: {battle.party1_bouts_won} - {battle.party2_bouts_won}
• Winning Leader {battle.winner_leader_name} receives{' '} +2 points, and all other winning squad members receive{' '} +1 point!
• Defeated Leader {battle.killed_leader_name} receives{' '} -1 point, leaves the party, and respawns at{' '} ({battle.killed_leader_respawn_position.x}, {battle.killed_leader_respawn_position.y}) . (Surviving defeated bots lose 0 points).
{battle.absorbed_members.length} surviving bot(s) from the defeated party surrendered and joined {battle.winner_party_name}!
New Squad Size: {battle.new_party_size} bots • Total Strength:{' '} {battle.new_party_strength}
{/* Continue Button */}
); };