refactor: update setFiles prop type to accept File[] and simplify file handling

This commit is contained in:
dayuan.jiang
2025-03-27 08:02:03 +00:00
parent 34cc437523
commit 7e0790d60f
6 changed files with 199 additions and 67 deletions

View File

@@ -14,7 +14,7 @@ interface ChatMessageDisplayProps {
messages: Message[];
error?: Error | null;
setInput: (input: string) => void;
setFiles: (files: FileList | undefined) => void;
setFiles: (files: File[]) => void;
}
export function ChatMessageDisplay({