import { getKVChat } from '@/lib/kv/chat';
import { Chat } from '.';

export interface ChatDataLoadProps {
  chatId: string;
}

export default async function ChatDataLoad({ chatId }: ChatDataLoadProps) {
  const chat = await getKVChat(chatId);
  return <Chat chat={chat} />;
}
