import { Eye, Lightbulb, Palette, Laptop, Rocket, ShieldCheck } from 'lucide-react'; import { useLanguage } from '../../contexts/LanguageContext'; import type { Service } from '../../data/Service'; interface ServicesSectionProps { title?: string; subtitle?: string; services?: Service[]; } export default function ServicesSection(props: ServicesSectionProps = {}) { const { texts: allTexts } = useLanguage(); const texts = allTexts.services; const accessibilityTexts = allTexts.accessibility; // Use centralized texts as defaults, allow props to override const { title = texts.title, subtitle = texts.subtitle, services = texts.serviceItems.map((service, index) => ({ icon: [Eye, Palette, ShieldCheck, Laptop, Lightbulb, Rocket][index] || Eye, title: service.title, description: service.description, colorClass: ["primary", "secondary", "tertiary", "quaternary", "quinary", "senary"][index] || "primary" })) } = props; return (
{/* Section Header */}

{title}

{subtitle}

{/* Skip link for keyboard navigation */}
{accessibilityTexts.skipLinks.skipToSkills}
{/* Services Grid */}
{services.map((service, index) => { const IconComponent = service.icon; return (

{service.description}

{/* Status indicator for screen readers */}
Service {index + 1} of {services.length}
); })}
{/* Services summary for screen readers */}

Services overview: {services.length} professional services available. Use Tab to navigate between service cards for detailed information.

); }