import { authEmail } from '@/auth'; import ChatSidebarList from '@/components/chat-sidebar/ChatListSidebar'; import Loading from '@/components/ui/Loading'; import { getKVChats } from '@/lib/kv/chat'; import { Suspense } from 'react'; interface ChatLayoutProps { children: React.ReactNode; } export default async function Layout({ children }: ChatLayoutProps) { const { email, isAdmin } = await authEmail(); const chats = await getKVChats(); return (
}>
}>
{children}
); }