refactor: Reduce Prop Drilling & Improve Separation of Concerns:

This commit is contained in:
dayuan.jiang
2025-03-27 07:48:19 +00:00
parent 13ace596d2
commit 34cc437523
3 changed files with 14 additions and 14 deletions

View File

@@ -116,11 +116,11 @@ export default function ChatPanel() {
status={status}
onSubmit={onFormSubmit}
onChange={handleInputChange}
setMessages={setMessages}
onClearChat={() => setMessages([])}
files={files}
onFileChange={handleFileChange}
showHistory={showHistory}
setShowHistory={setShowHistory}
onToggleHistory={setShowHistory}
/>
</CardFooter>
</Card>