// src/v2/components/ui/PageHeader.jsx // Standard page title block. Every page starts with this component. // // Props: // title — string (required) — main page heading // subtitle — string — muted description below the title // breadcrumbs — Array<{ label: string, href?: string }> — shown above the title // children — ReactNode — action buttons rendered top-right // className — extra classes on the wrapper // // Layout: // [breadcrumbs?] // [title] [children / actions →] // [subtitle?] // // Styles: src/v2/styles/components.css (.page-header*, .breadcrumbs*) export default function PageHeader({ title, subtitle, breadcrumbs, children, className = '', }) { return (
{/* Breadcrumb trail — only on detail pages */} {breadcrumbs?.length > 0 && ( )} {/* Title row */}

{title}

{subtitle && (

{subtitle}

)}
{/* Action slot — top-right buttons */} {children && (
{children}
)}
) }