| 114 | } |
| 115 | |
| 116 | interface ChatInputProps { |
| 117 | input: string |
| 118 | status: "submitted" | "streaming" | "ready" | "error" |
| 119 | onSubmit: (e: React.FormEvent<HTMLFormElement>) => void |
| 120 | onChange: (e: React.ChangeEvent<HTMLTextAreaElement>) => void |
| 121 | onClearChat: () => void |
| 122 | files?: File[] |
| 123 | onFileChange?: (files: File[]) => void |
| 124 | pdfData?: Map< |
| 125 | File, |
| 126 | { text: string; charCount: number; isExtracting: boolean } |
| 127 | > |
| 128 | showHistory?: boolean |
| 129 | onToggleHistory?: (show: boolean) => void |
| 130 | sessionId?: string |
| 131 | error?: Error | null |
| 132 | } |
| 133 | |
| 134 | export function ChatInput({ |
| 135 | input, |
nothing calls this directly
no outgoing calls
no test coverage detected