import type { ReactNode } from "react"; import Link from "next/link"; import { BrandLogo } from "@/components/brand/logo"; import { LogoutButton } from "@/components/layout/logout-button"; import { MobilePortalMenu } from "@/components/layout/mobile-portal-menu"; import { ThemeToggle } from "@/components/theme-toggle"; export type NavItem = { href: string; label: string }; type PortalShellProps = { brandHref: string; sectionLabel: string; nav: NavItem[]; // Editorial pages are wrapped in `.editorial-work-surface` (width + padding), // so their content uses `.editorial-section` (max-width: 100%). Admin pages // bring their own `.content-section` container (width + padding), so the // shell must not add a second width wrapper — pass an empty string here. mainClassName?: string; children: ReactNode; }; export function PortalShell({ brandHref, sectionLabel, nav, mainClassName = "editorial-work-surface", children, }: Readonly) { return (
{sectionLabel}
{children}
); }