import { NavLink, Outlet } from "react-router-dom"; import { useAuth } from "../auth/AuthContext"; const navItems = [ { to: "/dashboard", label: "Dashboard", end: true }, { to: "/dashboard/bookings", label: "Bookings" }, { to: "/dashboard/listings", label: "Listings" }, { to: "/dashboard/analytics", label: "Analytics" }, { to: "/dashboard/settings", label: "Settings" }, ]; export function AdminLayout() { const { user, signOut } = useAuth(); const business = user?.vendor_profile?.business_name ?? "Vendor"; const initial = (user?.first_name?.[0] || user?.email?.[0] || "V").toUpperCase(); return (