import type { ReactNode } from 'react'; import { Link } from 'react-router'; import { getRoleSectionTrail, getUserSectionTrail } from '@/navigation/breadcrumbs'; import { getBreadcrumbs, NAV_MODULES } from '@/navigation/nav-config'; export interface PageBreadcrumbsProps { pathname: string; } export function PageBreadcrumbs({ pathname }: PageBreadcrumbsProps): ReactNode { const entries = getUserSectionTrail(pathname) ?? getRoleSectionTrail(pathname) ?? getBreadcrumbs(NAV_MODULES, pathname); return ( ); }