Refine root sidebar and header controls

This commit is contained in:
MOH
2026-03-08 23:16:36 +01:00
parent 1d4c2f8e72
commit 3e835ee620
5 changed files with 103 additions and 56 deletions
+12
View File
@@ -19,7 +19,10 @@ type DashboardLayoutProps = {
icon?: LucideIcon;
items: RootNavItem[];
sidebarIconSrc?: string;
sidebarBrandHref?: string;
sidebarBrandHoverLabel?: string;
sidebarTop?: ReactNode;
sidebarFooterItems?: RootNavItem[];
sidebarFooter?: ReactNode;
headerActions?: ReactNode;
children: ReactNode;
@@ -31,7 +34,10 @@ export function DashboardLayout({
icon: Icon,
items,
sidebarIconSrc,
sidebarBrandHref,
sidebarBrandHoverLabel,
sidebarTop,
sidebarFooterItems,
sidebarFooter,
headerActions,
children,
@@ -43,7 +49,10 @@ export function DashboardLayout({
<DashboardSidebar
items={items}
iconSrc={sidebarIconSrc}
brandHref={sidebarBrandHref}
brandHoverLabel={sidebarBrandHoverLabel}
top={sidebarTop}
footerItems={sidebarFooterItems}
footer={sidebarFooter}
/>
</aside>
@@ -64,7 +73,10 @@ export function DashboardLayout({
<DashboardSidebar
items={items}
iconSrc={sidebarIconSrc}
brandHref={sidebarBrandHref}
brandHoverLabel={sidebarBrandHoverLabel}
top={sidebarTop}
footerItems={sidebarFooterItems}
footer={sidebarFooter}
/>
</SheetContent>