import { NavLink } from "react-router-dom"; import type { ReactNode } from "react"; import { APP_NAME } from "../../brand"; import { SiteFooter } from "../../legal/SiteFooter"; import { AppAvatar, AppButton, AppText } from "../../ui"; import { PRIMARY_NAV } from "./nav"; type Props = { brand?: string; userLabel: string; onLogout: () => void; children: ReactNode; }; function initials(label: string): string { const parts = label.trim().split(/\s+/).filter(Boolean); if (parts.length === 0) return "•"; if (parts.length === 1) return parts[0].slice(0, 1).toUpperCase(); return (parts[0][0] + parts[1][0]).toUpperCase(); } export function AppShell({ brand = APP_NAME, userLabel, onLogout, children, }: Props) { return (