import { useState } from 'react';
function RadioGroup({ options, value, onChange }) {
return (
{options.map((opt) => (
))}
);
}
export default function QuestionCard({ question, index, total, onAnswer, answer }) {
const isText = !question.options;
return (
Question {index + 1} of {total}
{question.question}
{isText ? (
);
}