"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { useSession, signOut } from "next-auth/react" import { LayoutDashboard, Megaphone, FileBarChart, Upload, Download, Settings, Plus, ExternalLink, LogOut, Shield } from "lucide-react" import { cn } from "@/lib/utils" const navItems = [ { href: "/dashboard", label: "Overview", icon: LayoutDashboard }, { href: "/dashboard/events", label: "Campaigns", icon: Megaphone }, { href: "/dashboard/pledges", label: "Pledges", icon: FileBarChart }, { href: "/dashboard/reconcile", label: "Reconcile", icon: Upload }, { href: "/dashboard/exports", label: "Exports", icon: Download }, { href: "/dashboard/settings", label: "Settings", icon: Settings }, ] const adminNav = { href: "/dashboard/admin", label: "Super Admin", icon: Shield } export default function DashboardLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname() const { data: session } = useSession() // eslint-disable-next-line @typescript-eslint/no-explicit-any const user = session?.user as any return (
{/* Top bar */}
P
{user?.orgName || "PNPL"}
{session && ( )}
{/* Desktop sidebar */} {/* Mobile bottom nav */} {/* Main content */}
{children}
) }