import React from 'react'; import Image from 'next/image'; import Reveal from '@/components/Reveal'; import { Badge, Container, Heading } from '@/components/ui'; import { Button } from '@/components/ui/Button'; export interface HeroSectionProps { title: string; badge?: string; subtitle?: string; backgroundImage?: any; alignment?: 'left' | 'center'; ctaLabel?: string; ctaHref?: string; } export const HeroSection: React.FC = (props) => { const { title, badge, subtitle, backgroundImage, alignment, ctaLabel, ctaHref } = props; const bgSrc = backgroundImage?.sizes?.card?.url || backgroundImage?.url; return (
{bgSrc && (
{title
)}
{badge && ( {badge} )} {title} {subtitle && (

{subtitle}

)} {ctaLabel && ctaHref && (
)}
); };