'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; const PATH_LABELS: Record = { dashboard: '📊 Дашборд', aircraft: '✈️ ВС', airworthiness: '📜 ЛГ', 'airworthiness-core': '🔧 Контроль ЛГ', maintenance: '📐 ТО', defects: '🛠️ Дефекты', 'personnel-plg': '🎓 Персонал', calendar: '📅 Календарь', risks: '⚠️ Риски', checklists: '✅ Чек-листы', regulator: '🏛️ ФАВТ', applications: '📋 Заявки', modifications: '⚙️ Модификации', organizations: '🏢 Организации', inbox: '📥 Входящие', settings: '⚙️ Настройки', profile: '👤 Профиль', help: '📚 Справка', 'audit-history': '📝 Аудит', print: '🖨️ Печать', crs: 'CRS', }; export default function Breadcrumbs() { const pathname = usePathname(); if (!pathname || pathname === '/') return null; const parts = pathname.split('/').filter(Boolean); if (parts.length <= 1) return null; return ( ); }