'use client'; import { useId } from 'react'; import { Input } from '@/components/ui/input'; import { TRUTH_CARD_NAMES } from '@/game/truthtrance'; import type { CardCountFact } from '@/game/truthtrance-card-count'; export function CardCountFields({ value, onChange, }: { value: CardCountFact; onChange: (fact: CardCountFact) => void; }) { const id = useId(); const invalid = !Number.isSafeInteger(value.value) || value.value < 0; return ( <>

Counts copies of this exact named card in the player’s hand now. Cards in the deck, discard pile, or a separate cache do not count. The answer reveals only whether the comparison is true.

{invalid && ( )} ); }