Spaces:
Sleeping
Sleeping
import { getKVChats } from '@/lib/kv/chat'; | |
import ChatCard from './ChatCard'; | |
export interface ChatSidebarListProps {} | |
export default async function ChatSidebarList({}: ChatSidebarListProps) { | |
const chats = await getKVChats(); | |
return ( | |
<> | |
{chats.map(chat => ( | |
<ChatCard key={chat.id} chat={chat} /> | |
))} | |
</> | |
); | |
} | |