"use client"; import type { FormEvent } from "react"; interface AnswerFormProps { answerA: string; answerB: string; disabled: boolean; error: string; onAnswerAChange: (value: string) => void; onAnswerBChange: (value: string) => void; onSubmit: (event: FormEvent) => void; } export default function AnswerForm({ answerA, answerB, disabled, error, onAnswerAChange, onAnswerBChange, onSubmit, }: AnswerFormProps) { return (
{error ? (

{error}

) : null}
); }