'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import type { ReactNode } from 'react'; import { ThemeToggle } from '@/components/shell/ThemeToggle'; import { Badge } from '@/components/ui/Badge'; import { Button } from '@/components/ui/Button'; import { cx } from '@/lib/cx'; import { signOutAction } from '@/server/auth/actions'; import { isActive, NAVIGATION, placeholderHref, sectionForPath, sectionHref, type NavItem, } from '@/components/shell/navigation'; export interface AppShellProps { children: ReactNode; initials: string; fullName: string; roleName: string; accountName: string; } export function AppShell({ children, initials, fullName, roleName, accountName, }: AppShellProps) { const pathname = usePathname(); const section = sectionForPath(pathname); return (