'use client'; import { useId } from 'react'; import type { Action, GameView } from '@/game/engine'; import { Button } from './ui/button'; import { CardInspector, CardRules } from './card-inspector'; export function PortableSnooper({ game, act, busy, }: { game: GameView; act: (action: Action) => void; busy: boolean; }) { const id = useId(); const snooper = game.portableSnooper; if (!snooper) return null; const reason = snooper.blocked ?? (!snooper.event ? 'A revealed battle is required for late defense.' : null); return (
Portable Snooper: poison defense

Choose this card as your normal battle defense, or play it after plans are revealed when you have room for a late defense. Finish any current interaction and play before submitting your traitor decision. It protects against ordinary poison, but does not stop Poison Tooth.

{reason && (

{reason}

)}
); }