(question: string)
| 107 | } |
| 108 | |
| 109 | const handleFollowUpClick = (question: string) => { |
| 110 | // Set the input and immediately submit |
| 111 | handleInputChange({ target: { value: question } } as React.ChangeEvent<HTMLTextAreaElement>) |
| 112 | // Submit the form after a brief delay to ensure input is set |
| 113 | setTimeout(() => { |
| 114 | formRef.current?.requestSubmit() |
| 115 | }, 50) |
| 116 | } |
| 117 | |
| 118 | const handleCopy = (content: string, messageId: string) => { |
| 119 | navigator.clipboard.writeText(content) |