Initial commit: Horux Despachos project
This commit is contained in:
18
apps/web/components/layouts/dashboard-shell.tsx
Normal file
18
apps/web/components/layouts/dashboard-shell.tsx
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Header } from './header';
|
||||
|
||||
interface DashboardShellProps {
|
||||
children: React.ReactNode;
|
||||
title: string;
|
||||
headerContent?: React.ReactNode;
|
||||
}
|
||||
|
||||
export function DashboardShell({ children, title, headerContent }: DashboardShellProps) {
|
||||
// Navigation is handled by the parent layout.tsx which respects theme settings
|
||||
// DashboardShell only provides Header and content wrapper
|
||||
return (
|
||||
<>
|
||||
<Header title={title}>{headerContent}</Header>
|
||||
<main className="p-6">{children}</main>
|
||||
</>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user