import { type ReactNode } from 'react'; import { cn } from '@/lib/utils'; interface PageHeaderProps { title: string; description?: string; actions?: ReactNode; className?: string; /** Optional small uppercase label above the title. */ eyebrow?: string; /** Optional one-line stats / KPI summary under the description. */ kpiLine?: ReactNode; /** Render with the polished gradient-brand-soft background strip. */ variant?: 'plain' | 'gradient'; } /** * Consistent page-level header: title, optional description, KPI sub-line, * eyebrow, and an action slot. Use `variant="gradient"` for hero strips on * landing pages and detail headers; the plain variant remains the default so * existing call-sites stay unchanged. */ export function PageHeader({ title, description, actions, className, eyebrow, kpiLine, variant = 'plain', }: PageHeaderProps) { const isGradient = variant === 'gradient'; return (
{description}
} {kpiLine ? (