import type { AuthCaptchaChallenge } from '../../services/authService'; import { PlatformMediaFrame } from '../common/PlatformMediaFrame'; import { PlatformStatusMessage } from '../common/PlatformStatusMessage'; import { PlatformTextField } from '../common/PlatformTextField'; type CaptchaChallengeFieldProps = { challenge: AuthCaptchaChallenge | null; answer: string; onAnswerChange: (value: string) => void; }; export function CaptchaChallengeField({ challenge, answer, onAnswerChange, }: CaptchaChallengeFieldProps) { if (!challenge) { return null; } return (
{challenge.promptText}
onAnswerChange(event.target.value)} />
); }