feat(app): switch to useChat hook

This commit is contained in:
ItzCrazyKns
2025-08-20 20:21:06 +05:30
parent 8fc7808654
commit 0b15bfbe32
13 changed files with 68 additions and 759 deletions

View File

@@ -1,4 +1,5 @@
import ChatWindow from '@/components/ChatWindow';
import { ChatProvider } from '@/lib/hooks/useChat';
import { Metadata } from 'next';
import { Suspense } from 'react';
@@ -11,7 +12,9 @@ const Home = () => {
return (
<div>
<Suspense>
<ChatWindow />
<ChatProvider>
<ChatWindow />
</ChatProvider>
</Suspense>
</div>
);