vision-agent / components /chat-sidebar /ChatListSidebar.tsx
MingruiZhang's picture
done (#4)
f80b091 unverified
raw
history blame
428 Bytes
import { getKVChats } from '@/lib/kv/chat';
import ChatCard from './ChatCard';
export interface ChatSidebarListProps {}
export default async function ChatSidebarList({}: ChatSidebarListProps) {
const chats = await getKVChats();
console.log('[Ming] ~ ChatSidebarList ~ chats:', chats);
return (
<>
{chats.map(chat => (
<ChatCard key={chat.id} id={chat.id} title={chat.title} />
))}
</>
);
}