app/dashboard/page.tsx
import type { JSX } from "react";
import { SidebarInset, SidebarProvider } from "@codefast/ui";
import { AppSidebar } from "@/app/dashboard/_components/app-sidebar.tsx";
import { SiteHeader } from "@/app/dashboard/_components/site-header.tsx";
export default function Page(): JSX.Element {
return (
<div className="[--header-height:calc(--spacing(14))]">
<SidebarProvider className="flex flex-col">
<SiteHeader />
<div className="flex flex-1">
<AppSidebar />
<SidebarInset>
<div className="flex flex-1 flex-col gap-4 p-4">
<div className="grid auto-rows-min gap-4 md:grid-cols-3">
<div className="bg-muted/50 aspect-video rounded-xl" />
<div className="bg-muted/50 aspect-video rounded-xl" />
<div className="bg-muted/50 aspect-video rounded-xl" />
</div>
<div className="bg-muted/50 min-h-[100vh] flex-1 rounded-xl md:min-h-min" />
</div>
</SidebarInset>
</div>
</SidebarProvider>
</div>
);
}