import { ViewTransitionLink } from "@cv/routing"; import { useLocation } from "react-router-dom"; import { ProfileSwitcher } from "@/features/profile/components/ProfileSwitcher"; import { cn } from "@/utils/cn"; import type { NavLink } from "./navLinks"; import { UserProfileDrawer } from "./UserProfileDrawer"; type NavbarProps = { user: { name: string; }; onLogout: () => void; links: NavLink[]; }; export const Navbar = ({ user, onLogout, links }: NavbarProps) => { const location = useLocation(); const isActive = (path: string) => location.pathname === path || location.pathname.startsWith(`${path}/`); return ( ); };