function OptionLabel({ opt }) {
const images = Array.isArray(opt.images) ? opt.images : [];
return (
{images.length > 0 ? (
{images.map((src) => (
))}
) : null}
{opt.label}
);
}
export default function QuestionField({ question, value, otherValue, onChange, onOtherChange }) {
if (!question) return null;
if (question.type === 'number') {
return (