import { auth } 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 session = await auth(); const email = session?.user?.email; return (
}>
}>
{children}
); }