"use client"; import { memo } from "react"; import { normalizeSectionHeaderVariant } from "../../lib/propNormalization"; export type SectionHeaderVariantValue = "default" | "multi-line" | "Default" | "Multi-Line"; interface SectionHeaderProps { title: string; subtitle: string; titleLg?: string; /** * Section header variant. Accepts both lowercase and PascalCase (case-insensitive). * Figma uses PascalCase, codebase uses lowercase - both are supported. */ variant?: SectionHeaderVariantValue; } const SectionHeader = memo( ({ title, subtitle, titleLg, variant: variantProp = "default" }) => { // Normalize props to handle both PascalCase (Figma) and lowercase (codebase) const variant = normalizeSectionHeaderVariant(variantProp); return (
{/* Title Container - Left side (lg breakpoint) */}

{title} {titleLg || title}

{/* Subtitle Container */}

{subtitle}

); }, ); SectionHeader.displayName = "SectionHeader"; export default SectionHeader;