import { Suspense } from 'react'; import Loading from '@/components/ui/Loading'; import { sessionUser } from '@/auth'; import { redirect } from 'next/navigation'; import ChatSidebarList from '@/components/chat-sidebar/ChatListSidebar'; interface ChatLayoutProps { children: React.ReactNode; } export default async function Layout({ children }: ChatLayoutProps) { return
TO BE FIXED
; // const { isAdmin, user } = await sessionUser(); // if (!isAdmin) { // redirect('/'); // } // const chats = await adminGetAllKVChats(); // return ( //
// {user && ( //
// }> // // //
// )} // }> //
// {children} //
//
//
// ); }