'use client'; import { usePathname } from 'next/navigation'; import Link from 'next/link'; export default function AdminBreadcrumb() { const pathname = usePathname(); const segments = (pathname || '') .split('/') .filter(Boolean) .slice(1); // skip 'admin' const formatSegment = (seg: string) => { return seg .split('-') .map(word => word.charAt(0).toUpperCase() + word.slice(1)) .join(' '); }; if (segments.length === 0) { return (