Spaces:
Sleeping
Sleeping
| import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"; | |
| import { AppSidebar } from "@/components/AppSidebar"; | |
| import { ReactNode } from "react"; | |
| interface DashboardLayoutProps { | |
| children: ReactNode; | |
| } | |
| export function DashboardLayout({ children }: DashboardLayoutProps) { | |
| return ( | |
| <SidebarProvider> | |
| <div className="flex min-h-screen w-full"> | |
| <AppSidebar /> | |
| <main className="flex-1"> | |
| <header className="sticky top-0 z-10 flex h-14 items-center gap-4 border-b bg-background px-6"> | |
| <SidebarTrigger /> | |
| <h1 className="text-lg font-semibold">Dashboard</h1> | |
| </header> | |
| <div className="p-6">{children}</div> | |
| </main> | |
| </div> | |
| </SidebarProvider> | |
| ); | |
| } | |