'use client'; import Link from 'next/link'; import { usePathname, useRouter } from 'next/navigation'; import { Activity, BookOpenText, ChartCandlestick, Eye, LogOut } from 'lucide-react'; import { signOut, useSession } from '@/lib/better-auth'; import { cn } from '@/lib/utils'; type AppShellProps = { title: string; subtitle?: string; actions?: React.ReactNode; children: React.ReactNode; }; const NAV_ITEMS = [ { href: '/', label: 'Command Center', icon: Activity }, { href: '/filings', label: 'Filings Stream', icon: BookOpenText }, { href: '/portfolio', label: 'Portfolio Matrix', icon: ChartCandlestick }, { href: '/watchlist', label: 'Watchlist', icon: Eye } ]; export function AppShell({ title, subtitle, actions, children }: AppShellProps) { const pathname = usePathname(); const router = useRouter(); const { data: session } = useSession(); const handleSignOut = async () => { await signOut(); router.replace('/auth/signin'); router.refresh(); }; return (