'use client'; import { motion } from 'framer-motion'; import { useReducedMotion } from '@/hooks/use-reduced-motion'; interface SectionHeaderProps { /** English label shown above title (e.g. "What We Do") */ label: string; /** Main title text */ title: string; /** Optional highlighted part of the title (rendered in brand red) */ highlight?: string; /** Optional description below the title */ desc?: string; /** Whether this header is on a dark background */ light?: boolean; className?: string; } const EASE = [0.22, 1, 0.36, 1] as const; export function SectionHeader({ label, title, highlight, desc, light = false, className = '', }: SectionHeaderProps) { const shouldReduceMotion = useReducedMotion(); return ( {/* Eyebrow label with brand accent bar */}
{/* Brand accent bar — grows from bottom on entry */} {label}
{/* Title */}

{title} {highlight && ( {highlight} )}

{/* Description */} {desc && (

{desc}

)}
); }