refactor: rename message.tsx to MessageBubble.tsx and consolidate message-related components for better organization

This commit is contained in:
ecwu
2025-01-04 23:53:45 +08:00
parent 3663193f50
commit 47f63364b1
7 changed files with 127 additions and 143 deletions

View File

@@ -215,6 +215,10 @@ export function App() {
const newKey = await (await db).add(STORAGE_NAME, newChatStore(chatStore));
setSelectedChatIndex(newKey as number);
setAllChatStoreIndexes(await (await db).getAllKeys(STORAGE_NAME));
toast({
title: "New chat session created",
description: `A new chat session (ID. ${newKey}) has been created.`,
});
};
const handleNewChatStore = async () => {
return handleNewChatStoreWithOldOne(chatStore);