'use client'; import type { BattleOutcomeWindow } from '@/game/battle-outcome-window'; import { Button } from './ui/button'; export function BattleOutcomeWindowControls({ window, me, players, busy, onReady, }: { window: BattleOutcomeWindow; me: string; players: readonly { id: string; name: string }[]; busy: boolean; onReady: (event: string) => void; }) { const combatants = [window.attacker, window.defender]; const participant = combatants.includes(me); const ownReady = window.ready.includes(me); return (

Final battle actions

Play any optional final battle card you want to use, then finish. Battle resolution waits for both players.

If Juice of Sapho changes the aggressor, both finished marks are cleared and both players get a fresh final opportunity.

{participant && ( )}
); }