import Link from 'next/link'; import { ArrowRight } from 'lucide-react'; import { Button } from '@/components/ui/button'; export type HeroProps = { heading?: string; description?: string; primaryLabel?: string; primaryUrl?: string; secondaryLabel?: string; secondaryUrl?: string; imageUrl?: string; imageAlt?: string; imagePosition?: 'left' | 'right'; }; export default function Hero({ heading = '', description = '', primaryLabel = '', primaryUrl = '#', secondaryLabel = '', secondaryUrl = '#', imageUrl = '', imageAlt = '', imagePosition = 'right', }: HeroProps) { const copy = (

{heading}

{description &&

{description}

}
{primaryLabel && } {secondaryLabel && }
); const image = (
{imageUrl ? {imageAlt} :
Add a hero image
}
); return (
{imagePosition === 'left' ? <>{image}{copy} : <>{copy}{image}}
); }