Move maintenance status into root sidebar

This commit is contained in:
MOH
2026-03-07 18:44:48 +01:00
parent 4f39c097e4
commit f6a5a37676
2 changed files with 40 additions and 13 deletions
+11 -6
View File
@@ -42,6 +42,7 @@ type RootDashboardShellProps = {
headerTitle: string;
headerDescription: string;
headerActions?: ReactNode;
sidebarTopContent?: ReactNode;
toolbar?: ReactNode;
children: ReactNode;
};
@@ -54,6 +55,7 @@ export async function RootDashboardShell({
headerTitle,
headerDescription,
headerActions,
sidebarTopContent,
toolbar,
children,
}: RootDashboardShellProps) {
@@ -91,12 +93,15 @@ export async function RootDashboardShell({
items={sidebarItems}
sidebarIconSrc={mediaBindings.favicon?.url}
sidebarTop={
<Button asChild variant="outline" className="w-full justify-between">
<Link href={getLocalizedPath("de")} target="_blank" rel="noreferrer">
{copy.backToSite}
<ArrowLeft className="h-4 w-4" />
</Link>
</Button>
<div className="space-y-2">
<Button asChild variant="outline" className="w-full justify-between">
<Link href={getLocalizedPath("de")} target="_blank" rel="noreferrer">
{copy.backToSite}
<ArrowLeft className="h-4 w-4" />
</Link>
</Button>
{sidebarTopContent}
</div>
}
sidebarFooter={
<>