import Heading from '@/ui/Heading'; import { Trophy, Users } from 'lucide-react'; import Button from '../ui/Button'; interface HeroSectionProps { icon?: React.ElementType; title: string; description: string; stats: Array<{ value: number | string; label: string; color: string; animate?: boolean; }>; ctaLabel?: string; ctaDescription?: string; onCtaClick?: () => void; className?: string; } export function HeroSection({ icon: Icon = Users, title, description, stats, ctaLabel = "View Leaderboard", ctaDescription = "See full driver rankings", onCtaClick, className, }: HeroSectionProps) { return (
{/* Background decoration */}
{title}

{description}

{/* Quick Stats */}
{stats.map((stat, index) => (
{typeof stat.value === 'number' ? stat.value.toLocaleString() : stat.value} {stat.label}
))}
{/* CTA */} {onCtaClick && (

{ctaDescription}

)}
); }