'use client'; import SiteGrid from '@/components/SiteGrid'; import { PATH_ADMIN_CONFIGURATION, checkPathPrefix, isPathAdminConfiguration, } from '@/site/paths'; import { clsx } from 'clsx/lite'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { BiCog } from 'react-icons/bi'; export default function AdminNavClient({ items, }: { items: { label: string, href: string, count: number, }[] }) { const pathname = usePathname(); return (
{items.map(({ label, href, count }) => {label} {count > 0 && ({count})} )}
} /> ); }