21 lines
518 B
TypeScript
21 lines
518 B
TypeScript
import { AppSidebar } from "@/components/ui/app-sidebar"
|
|
import { SidebarProvider, SidebarTrigger } from "@/components/ui/sidebar"
|
|
|
|
export default function DashboardLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode
|
|
}>) {
|
|
return (
|
|
<SidebarProvider>
|
|
<div className="flex min-h-screen w-full gap-1 bg-black">
|
|
<AppSidebar />
|
|
|
|
<main className="flex w-full grow rounded-xl border border-white bg-black">
|
|
{children}
|
|
</main>
|
|
</div>
|
|
</SidebarProvider>
|
|
)
|
|
}
|