chore: Coco chat window input and message (#237)

This commit is contained in:
BiggerRain
2025-03-04 15:49:04 +08:00
committed by GitHub
parent 7fc1b0e31f
commit 0bc61881c4
9 changed files with 126 additions and 84 deletions

View File

@@ -64,7 +64,7 @@ export default function DesktopApp() {
setIsTransitioned(value);
}
async function changeInput(value: string) {
function changeInput(value: string) {
setInput(value);
}
@@ -114,9 +114,7 @@ export default function DesktopApp() {
inputValue={input}
onSend={handleSendMessage}
disabled={isTyping}
disabledChange={() => {
cancelChat();
}}
disabledChange={cancelChat}
changeMode={changeMode}
changeInput={changeInput}
reconnect={reconnect}