()
| 49 | const [currentQuestion, setCurrentQuestion] = createSignal('') |
| 50 | |
| 51 | const submitMessage = () => { |
| 52 | setQuestions([ |
| 53 | ...questions(), |
| 54 | { id: crypto.randomUUID(), question: currentQuestion() }, |
| 55 | ]) |
| 56 | setCurrentQuestion('') |
| 57 | } |
| 58 | |
| 59 | return ( |
| 60 | <div class="flex flex-col h-screen max-w-3xl mx-auto p-4"> |