'use client'; import type { Action } from '@/game/engine'; import { Button } from './ui/button'; /** The opportunity is public; card custody is projected separately to its owner. */ export type SaphoGreatMakerPriorityView = { event: string; canPass: boolean; waiting: boolean; }; export type SaphoGreatMakerPriorityProps = { game: { saphoGreatMakerPriority?: SaphoGreatMakerPriorityView | null }; act: (action: Action) => void; busy: boolean; }; export function SaphoGreatMakerPriority({ game, act, busy }: SaphoGreatMakerPriorityProps) { const view = game.saphoGreatMakerPriority; if (!view) return null; const event = view.event; const canAct = () => !busy && game.saphoGreatMakerPriority === view && view.event === event && typeof event === 'string' && event.length > 0 && view.canPass; return

Great Maker vote order

Before the next vote, players may use an available order change from their own hand. Votes already cast stay finished.

{view.canPass ? :

{view.waiting ? 'Waiting for the other players to continue.' : 'Your response has been recorded.'}

}
; }