import { dbGetMyChatList } from '@/lib/db/functions';
import ChatSelect from './ChatSelect';

export default async function ChatSelectServer() {
  const [myChats] = await Promise.all([dbGetMyChatList()]);

  return <ChatSelect myChats={myChats} />;
}
