20 lines
449 B
TypeScript
20 lines
449 B
TypeScript
import { Sidebar } from './sidebar';
|
|
import { Header } from './header';
|
|
|
|
interface DashboardShellProps {
|
|
children: React.ReactNode;
|
|
title: string;
|
|
}
|
|
|
|
export function DashboardShell({ children, title }: DashboardShellProps) {
|
|
return (
|
|
<div className="min-h-screen bg-background">
|
|
<Sidebar />
|
|
<div className="pl-64">
|
|
<Header title={title} />
|
|
<main className="p-6">{children}</main>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|