feat(app): port history saving features

This commit is contained in:
ItzCrazyKns
2025-03-19 13:42:15 +05:30
parent c24edac16d
commit bab5dba6e1
5 changed files with 94 additions and 11 deletions

View File

@ -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;