File size: 349 Bytes
c3e8f3d
 
 
 
 
 
f80b091
 
 
 
d0a1b70
f80b091
 
 
c3e8f3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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} />
      ))}
    </>
  );
}