+
{
+ const qs = [...questions];
+ qs[qi].question_text = e.target.value;
+ setQuestions(qs);
+ }}
+ className="w-full mb-2 p-2 border rounded"
+ />
+
+ {q.question_type === "true_false" ? (
+
+ {["True", "False"].map((label) => (
+
+ ))}
+
+ ) : (
+ <>
+ {q.options.map((opt, oi) => (
+
+ {
+ const qs = [...questions];
+ qs[qi].options[oi].option_text = e.target.value;
+ setQuestions(qs);
+ }}
+ className="flex-1 p-2 border rounded"
+ />
+
+
+
+ ))}
+
+ >
+ )}
+
+
+