'use client'; import type {Action, GameView} from '@/game/engine'; /** This notice remains visible even when the Emperor has no spice to share. */ export function EmperorPhaseOpeningPriority({game, act, busy}: { game: Pick; act: (action:Action) => void; busy: boolean; }) { const priority = game.emperorPhaseOpeningPriority; if (!priority) return null; const event = priority.event; const recipient = game.players.find(player => player.id === priority.recipient)?.name ?? 'their ally'; const canContinue = !busy && priority.canContinue && !!event; return

Emperor alliance opportunity

Before the phase begins, the Emperor may share spice with {recipient}.

{priority.canContinue ? :

Waiting for the Emperor to continue.

}
; }