'use client'; import { usePathname, useRouter } from 'next/navigation'; /** Mobile section switcher for the admin shell (< lg): a native select that navigates. */ export function AdminNavSelect({ items }: { items: { href: string; label: string }[] }) { const router = useRouter(); const pathname = usePathname(); const current = items.find((i) => pathname === i.href || pathname.startsWith(i.href + '/'))?.href ?? items[0]?.href ?? ''; return ( ); }