+
{question.question}
+
+ {question.options.map((option) => (
+
+ ))}
+
+
+ {showOther ? (
+
+ setOtherText(event.target.value)}
+ placeholder="Type your answer..."
+ className="flex-1 rounded border bg-background px-2 py-1 text-xs"
+ />
+
+
+ ) : null}
+
+ )
+}
+
+function MultiSelectQuestion({
+ question,
+ onSelect,
+ disabled,
+}: {
+ question: FreshAgentQuestion['questions'][number]
+ onSelect: (answer: string) => void
+ disabled?: boolean
+}) {
+ const [selected, setSelected] = useState