export interface Feature { name: string description: string imageSrc: string imageAlt: string } interface WithAlternatingSectionsProps { features: Feature[] title?: string subtitle?: string } function classNames(...classes: (string | boolean | undefined)[]) { return classes.filter(Boolean).join(' ') } export default function WithAlternatingSections({ features, title = 'Nos services', subtitle = 'Des solutions complètes en peinture et décoration pour transformer vos espaces.', }: WithAlternatingSectionsProps) { return (

{title}

{subtitle}

{features.map((feature, featureIdx) => (

{feature.name}

{feature.description}

{feature.imageAlt}
))}
) }