import { SidebarProvider } from "~/components/ui/sidebar";
import AdminSideBar from "./_components/AdminSideBar";
import { ScrollArea } from "~/components/ui/scroll-area";

export const dynamic = 'force-dynamic';

export default function Admin({children}: Readonly<{children: React.ReactNode}>) {
  return (
    <>
      <SidebarProvider>
      <AdminSideBar/>
      <ScrollArea className="px-10 lg:px-0 w-full h-screen pb-10 max-w-4xl mx-auto pt-10">
        {children}
      </ScrollArea>
      </SidebarProvider>
    </>
  )
}
