import ChatDataLoad from '@/components/chat/ChatDataLoad';
import { Suspense } from 'react';
import Loading from '@/components/ui/Loading';

interface PageProps {
  params: {
    id: string;
  };
}

export default async function Page({ params }: PageProps) {
  const { id: chatId } = params;

  return (
    <Suspense fallback={<Loading />}>
      <ChatDataLoad chatId={chatId} />
    </Suspense>
  );
}
