/* section-heading.tsx spboucher.ai Web Author: Simon-Pierre Boucher Mail: contact@spboucher.ai */ import type { LucideIcon } from "lucide-react"; import { IconTile } from "@/components/icon-tile"; import { cn } from "@/lib/utils"; interface SectionHeadingProps { eyebrow?: string; title: string; description?: string; icon?: LucideIcon; as?: "h1" | "h2" | "h3"; className?: string; } /** Unified section header: rounded icon tile, eyebrow, title, description. */ export function SectionHeading({ eyebrow, title, description, icon, as: Tag = "h2", className, }: SectionHeadingProps) { const isPageTitle = Tag === "h1"; return (
{icon && }
{eyebrow && (

)} {title} {description && (

{description}

)}
); }