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