'use client'; import { parsePhaseBidClaim, type PhaseBidClaim } from '@/game/turn-bid-promises'; import { Input } from './ui/input'; export function phaseBidClaimInputError(value: unknown): string | null { try { parsePhaseBidClaim(value); return null; } catch (error) { return error instanceof Error ? error.message : 'Choose a positive whole bid minimum.'; } } /** Turn is fixed by the authoritative question context; the asker chooses the threshold. */ export function PhaseBidClaimFields(props: { value: PhaseBidClaim; onChange: (claim: PhaseBidClaim) => void; disabled?: boolean; }) { const error = phaseBidClaimInputError(props.value); return
; }