"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import type { ReactNode } from "react"; import { Sidebar } from "@unlocalhosted/metalui"; export type SettingsNavItem = { href: string; label: string; icon: ReactNode }; /** The pages of a settings area: MetalUI's sidebar section, its highlight gliding to the current page. */ export function SettingsNav({ title, items }: { title: string; items: SettingsNavItem[] }) { const pathname = usePathname(); return ( {items.map((item) => ( }> {item.label} ))} ); }