Spaces:
Running
Running
File size: 529 Bytes
009c95b 4af6326 009c95b 4af6326 d0a1b70 a86b547 009c95b 04735a9 009c95b d0a1b70 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import { Suspense } from 'react';
import ChatServer from './server';
import Loading from '@/components/ui/Loading';
import { auth } from '@/auth';
interface PageProps {
params: {
id: string;
};
}
export default async function Page({ params }: PageProps) {
const { id: chatId } = params;
return (
<Suspense
fallback={
<div className="h-screen w-screen flex justify-center items-center">
<Loading />
</div>
}
>
<ChatServer chatId={chatId} />
</Suspense>
);
}
|