import { Download } from 'lucide-react'; import { useLocation, useNavigate } from 'react-router-dom'; import type { StatItem } from '../../data/StatItem'; import { scrollToProjects } from '../../utils/scrollUtils'; import { getTexts } from '../../config/texts'; interface HeroSectionProps { title?: string; description?: string; primaryButtonText?: string; secondaryButtonText?: string; statItems?: StatItem[]; } export default function HeroSection(props: HeroSectionProps = {}) { const texts = getTexts().hero; // Use centralized texts as defaults, allow props to override const { title = texts.title, description = texts.description, primaryButtonText = texts.primaryButtonText, secondaryButtonText = texts.secondaryButtonText, statItems = texts.statItems, } = props; const location = useLocation(); const navigate = useNavigate(); const handleViewWork = () => { scrollToProjects(location.pathname, navigate); }; const handleDownloadResume = () => { // Add your resume download logic here console.log('Download resume clicked'); }; return (

{title}

{description}

{statItems.map((item, index) => (
{item.value} {item.label}
))}
); }