'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 (

Five ordinary Emperor counters count as Sardaukar for this battle. They remain ordinary physical counters; any losses go to the ordinary Tanks.

); 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}

}
); }