import { getKVChats } from '@/lib/kv/chat';
import ChatCard, { ChatCardLayout } from './ChatCard';
import { IconPlus } from '../ui/Icons';
import { auth } from '@/auth';
export interface ChatSidebarListProps {}
export default async function ChatSidebarList({}: ChatSidebarListProps) {
const session = await auth();
if (!session || !session.user) {
return null;
}
const chats = await getKVChats();
return (
<>
{chats.map(chat => (
))}
>
);
}