MCPcopy Create free account
hub / github.com/admineral/OpenAI-Assistant-API-Chat / Props

Interface Props

app/components/InputForm.tsx:7–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5import { SendIcon, LoadingCircle, DocumentIcon, XIcon, ImageIcon } from '../icons';
6
7interface 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
29const 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>) => {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected