import Breadcrumbs from './Breadcrumbs'; interface PageHeaderProps { title: string; subtitle?: string; action?: React.ReactNode; } export default function PageHeader({ title, subtitle, action }: PageHeaderProps) { return (
{/* Phase 3 UX-M5 closure: breadcrumb trail derived from useLocation() + the static pathSegmentLabels map in Breadcrumbs.tsx (see that file's header comment for why we pivoted away from the useMatches() + handle.crumb pattern the audit prompt suggested). Renders nothing on the dashboard root — backward-compatible with every existing PageHeader consumer. */}

{title}

{subtitle &&

{subtitle}

}
{action}
); }