refactor: rename message.tsx to MessageBubble.tsx and consolidate message-related components for better organization
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user