'use client'; import { useState } from 'react'; import { ChoamPowerCost, useChoamPower } from './choam-power-cost'; import { choamPowerAction } from '@/game/choam-power-options'; import { HelpTip } from './help-tip'; import { Button } from '@/components/ui/button'; import type { Action, GameView } from '@/game/engine'; import { gameTerritories, splitLocation } from '@/game/board'; export function ChoamGamont({ game: g, act, busy, }: { game: GameView; act: (a: Action) => void; busy: boolean; }) { const power = useChoamPower(g, 'gamont'); const [selection, setSelection] = useState(''); if (!g.choamWorthless || g.phase !== 8) return null; const options = g.choamWorthless.gamont; const key = (o: (typeof options)[number]) => `${o.target}/${o.key}/${o.elite}`; const chosen = options.find((o) => key(o) === selection) ?? options[0]; return (

Trip to Gamont

Return one other player’s force to its reserves. Choose its sector and force type. Karama may stop the return; victory is checked after this opportunity. A No-Field in the selected sector must reveal first; the card is used even if no force is there to return.

{power.play && options.length > 0 && ( <> )} {(!power.play || !options.length) && (

No available Trip to Gamont play.

)} {g.decision?.kind === 'choamMentat' && ( )}
); }