+
{title}
+
{qText}
+ {options && options.length > 0 && (
+
+ {options.map((option, idx) => (
+
+ ))}
+
+ )}
+
onTextChange(e.target.value)}
+ minHeight={21}
+ maxHeight={200}
+ placeholder={t("chat:questions.typeAnswer")}
+ className="w-full py-2 pl-3 pr-3 rounded border border-transparent"
+ />
+
+ )
+}
+
+export const MultiQuestionHandler = ({ questions, onSendResponse }: MultiQuestionHandlerProps) => {
+ const { t } = useAppTranslation()
+ const { showQuestionsOneByOne } = useExtensionState()
+ const [currentQuestionIndex, setCurrentQuestionIndex] = useState(0)
+ const [selectedOptions, setSelectedOptions] = useState<(string | undefined)[]>(
+ new Array(questions.length).fill(undefined),
+ )
+ const [textAnswers, setTextAnswers] = useState