'use client'; import { Input } from './ui/input'; /** Validation is about the public question, never the respondent's private purse. */ export function pledgeClaimInputError(minimum: unknown): string | null { return typeof minimum === 'number' && Number.isSafeInteger(minimum) && minimum > 0 ? null : 'Choose a positive whole spice amount within the safe integer range.'; } /** The recipient is the respondent's current public reciprocal ally. */ export function PledgeClaimFields(props: { minimum: number; allyName: string; disabled: boolean; onChange: (minimum: number) => void; }) { const error = pledgeClaimInputError(props.minimum); return
; }