'use client'; import type { Action, GameView } from '@/game/engine'; import { nexusSardaukarAction } from '@/game/nexus-sardaukar-options'; import { Button } from './ui/button'; type Props = { game: GameView; act: (action: Action) => void; busy: boolean }; export function NexusSardaukar({ game, act, busy }: Props) { const state = game.nexusSardaukar; if (!state) return null; if (state.pending) return (

{game.players.find((p) => p.id === state.pending!.owner)?.name ?? 'Emperor'}{' '} declared Cunning. Karama may cancel the entire enhancement before the five counters count as Sardaukar.

); if (state.active) return (

Cunning declared five ordinary Emperor counters as Sardaukar for this battle. An own-Homeworld reserve fee can reduce that group; the selected plan shows the remaining combat pool. These counters retain their ordinary physical identity and go to the ordinary Tanks when lost.

); const offer = state.offer; if (!offer) return null; const action = nexusSardaukarAction(game, offer.event); return (

Emperor Nexus ยท Cunning

Count five of your ordinary forces as Sardaukar for this battle. Use this before submitting your plan, with no actual Sardaukar in the battle.

This spends your Nexus card once. Karama may cancel the enhancement. The five counters keep their ordinary physical identity, including when lost.

{offer.blocked &&

{offer.blocked}

}
); }