"use client"; import { cn } from "@ui/lib"; import Link from "next/link"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; export function SettingsMenu({ menuItems, }: { menuItems: { title: string; avatar: ReactNode; items: { title: string; href: string; icon?: ReactNode; }[]; }[]; }) { const pathname = usePathname(); const isActiveMenuItem = (href: string) => pathname.includes(href); return (