import { AppSidebar } from "@/modules/layout/components/app-sidebar"
import { SidebarProvider } from "@/modules/layout/components/sidebar-provider"
import { SiteHeader } from "@/modules/layout/components/site-header"

export default function DashboardLayout({
  children,
}: {
  children: React.ReactNode
}) {
  return (
    <SidebarProvider sidebar={<AppSidebar />}>
      <SiteHeader />
      <main className="flex-1 overflow-auto p-6">
        {children}
      </main>
    </SidebarProvider>
  )
}
