import { Link } from "react-router"; import { cn } from "@/lib/utils"; import { Typography } from "@/components/Typography"; export type HeroProps = { tagline: string; heading: string; subheading: string; primaryCta: { label: string; href: string }; secondaryCta: { label: string; href: string }; imageUrl: string; align: "left" | "center"; height: "md" | "lg" | "full"; tone: "light" | "dark"; }; const heightClass: Record = { md: "min-h-[60vh]", lg: "min-h-[80vh]", full: "min-h-screen", }; export function Hero({ tagline, heading, subheading, primaryCta, secondaryCta, imageUrl, align, height, tone, }: HeroProps) { const isDark = tone === "dark"; return (
{imageUrl ? ( ) : null}
{tagline ? (

{tagline}

) : null} {heading} {subheading ? ( {subheading} ) : null}
{primaryCta?.label ? ( {primaryCta.label} ) : null} {secondaryCta?.label ? ( {secondaryCta.label} ) : null}
); }