lty/qy-lty-admin/components/dashboard-shell.tsx
2026-03-17 13:17:02 +08:00

17 lines
612 B
TypeScript

import type React from "react"
import { cn } from "@/lib/utils"
import { Sidebar } from "@/components/sidebar"
interface DashboardShellProps extends React.HTMLAttributes<HTMLDivElement> {}
export function DashboardShell({ children, className, ...props }: DashboardShellProps) {
return (
<div className="grid min-h-screen w-full md:grid-cols-[280px_1fr] bg-gradient-to-br from-gray-50 to-white">
<Sidebar />
<main className={cn("flex flex-col relative overflow-hidden", className)} {...props}>
<div className="flex-1 space-y-6 p-8 pt-6">{children}</div>
</main>
</div>
)
}