mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-09-17 23:01:32 +00:00
18 lines
378 B
TypeScript
18 lines
378 B
TypeScript
'use client';
|
|
|
|
import ChatWindow from '@/components/ChatWindow';
|
|
import { useParams } from 'next/navigation';
|
|
import React from 'react';
|
|
import { ChatProvider } from '@/lib/hooks/useChat';
|
|
|
|
const Page = () => {
|
|
const { chatId }: { chatId: string } = useParams();
|
|
return (
|
|
<ChatProvider id={chatId}>
|
|
<ChatWindow />
|
|
</ChatProvider>
|
|
);
|
|
};
|
|
|
|
export default Page;
|