SurfSense/surfsense_web/app/dashboard/[search_space_id]/chats/page.tsx
2025-05-08 19:31:47 -07:00

21 lines
No EOL
642 B
TypeScript

import { Suspense } from 'react';
import ChatsPageClient from './chats-client';
interface PageProps {
params: {
search_space_id: string;
};
}
export default async function ChatsPage({ params }: PageProps) {
// Get search space ID from the route parameter
const { search_space_id: searchSpaceId } = await Promise.resolve(params);
return (
<Suspense fallback={<div className="flex items-center justify-center h-[60vh]">
<div className="h-8 w-8 animate-spin rounded-full border-4 border-primary border-t-transparent"></div>
</div>}>
<ChatsPageClient searchSpaceId={searchSpaceId} />
</Suspense>
);
}