| 5 | import { SendIcon, LoadingCircle, DocumentIcon, XIcon, ImageIcon } from '../icons'; |
| 6 | |
| 7 | interface Props { |
| 8 | input: string; |
| 9 | setInput: (input: string) => void; |
| 10 | inputRef: React.RefObject<HTMLTextAreaElement>; |
| 11 | formRef: React.RefObject<HTMLFormElement>; |
| 12 | disabled: boolean; |
| 13 | chatStarted: boolean; |
| 14 | isSending: boolean; |
| 15 | isLoading: boolean; |
| 16 | chatUploadedFiles: File[]; |
| 17 | setChatUploadedFiles: (files: File[]) => void; |
| 18 | chatFileDetails: { name: string; type: string; size: number }[]; |
| 19 | setChatFileDetails: (details: { name: string; type: string; size: number }[]) => void; |
| 20 | chatManager: any; |
| 21 | setChatStarted: (started: boolean) => void; |
| 22 | setChatMessages: (messages: any[]) => void; |
| 23 | setStatusMessage: (message: string) => void; |
| 24 | setIsSending: (sending: boolean) => void; |
| 25 | setProgress: (progress: number) => void; |
| 26 | setIsLoadingFirstMessage: (loading: boolean) => void; |
| 27 | } |
| 28 | |
| 29 | const InputForm: React.FC<Props> = ({ input, setInput, inputRef, formRef, disabled, chatStarted, isSending, isLoading, chatUploadedFiles, setChatUploadedFiles, chatFileDetails, setChatFileDetails, chatManager, setChatStarted, setChatMessages, setStatusMessage, setIsSending, setProgress, setIsLoadingFirstMessage }) => { |
| 30 | const handleFormSubmit = async (e: React.FormEvent<HTMLFormElement>) => { |
nothing calls this directly
no outgoing calls
no test coverage detected