'use client'; import type { Action, GameView } from '@/game/engine'; import { Button } from './ui/button'; export function HomeworldEcazDuke({ game, act, busy, }: { game: GameView; act: (action: Action) => void; busy: boolean; }) { const offer = game.homeworldEcazDuke; if (!offer || offer.occupier !== game.me) return null; const blocked = offer.blocked ?? (!offer.event ? 'This Duke grant is not currently available.' : !offer.recipients.length ? 'No eligible recipient is currently available.' : null); const disabled = busy || blocked !== null; return (

Occupied Ecaz: grant Duke Vidal

Provisional occupation benefit: grant the living shared Duke Vidal to yourself or your reciprocal ally. The recipient may use him in one battle, following the Duke’s ordinary lifecycle. Only Ecaz may revive him.

{blocked !== null && (

{blocked}

)}
{offer.recipients.map((recipient) => ( ))}
); }