import * as React from 'react'; import { ChevronRight } from 'lucide-react'; import { cn } from '@/lib/utils'; /** * SectionHeader — the label row above a section or inside a card. Three levels * so the hierarchy below a PageHeader stays predictable: * * - `overline` — a small all-caps group label ("INTERVIEW COMPLETION") * - `card` — a card's own title row * - `section` — a page-level section title */ /** @param {any} props */ export function SectionHeader({ title, subtitle, icon: Icon, level = 'card', actions, /** Renders a "View all ›" affordance on the right. */ onViewAll, viewAllLabel = 'View all', className, }) { if (level === 'overline') { return (

{title}

{actions}
); } return (
{Icon && ( )}

{title}

{subtitle &&

{subtitle}

}
{actions} {onViewAll && ( )}
); }