Add editable localized marquee settings

This commit is contained in:
MOH
2026-03-08 22:40:01 +01:00
parent 8740a94611
commit 1d4c2f8e72
9 changed files with 608 additions and 5 deletions
+9 -1
View File
@@ -8,6 +8,7 @@ import {
ShieldAlert,
SwatchBook,
Tags,
Type,
type LucideIcon,
} from "lucide-react";
@@ -18,6 +19,7 @@ type RootNavigationCopy = {
portfolio: string;
media: string;
siteSettings: string;
marquee?: string;
smtp?: string;
contactProtection?: string;
};
@@ -33,7 +35,7 @@ export type RootNavItem = {
export function getRootNavigation(
copy: RootNavigationCopy,
active: "overview" | "maintenance" | "ui-kit" | "portfolio" | "media" | "site-settings" | "smtp",
active: "overview" | "maintenance" | "ui-kit" | "portfolio" | "media" | "site-settings" | "smtp" | "marquee",
smtpChild?: "settings" | "contact-protection",
portfolioChild?: "overview" | "projects" | "new-project" | "categories",
): RootNavItem[] {
@@ -68,6 +70,12 @@ export function getRootNavigation(
icon: Globe2,
active: active === "site-settings",
},
{
label: copy.marquee ?? "Marquee",
href: "/root/marquee",
icon: Type,
active: active === "marquee",
},
{
label: copy.smtp ?? "SMTP",
href: "/root/smtp",