feat(app): port history saving features
This commit is contained in:
parent
c24edac16d
commit
bab5dba6e1
5 changed files with 94 additions and 11 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import ChatWindow from '@/components/ChatWindow';
|
||||
import React from 'react';
|
||||
|
||||
const Page = ({ params }: { params: { chatId: string } }) => {
|
||||
return <ChatWindow id={params.chatId} />;
|
||||
const Page = ({ params }: { params: Promise<{ chatId: string }> }) => {
|
||||
const { chatId } = React.use(params);
|
||||
return <ChatWindow id={chatId} />;
|
||||
};
|
||||
|
||||
export default Page;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue