'use client' import { LucideIcon } from 'lucide-react' interface Feature { title: string body: string icon?: LucideIcon } interface FeatureAlternatingProps { features: Feature[] } export function FeatureAlternating({ features }: FeatureAlternatingProps) { return (
{features.map((feature, index) => { const Icon = feature.icon const isEven = index % 2 === 0 return (
{Icon && }

{feature.title}

{feature.body}

{Icon ? ( ) : (

{feature.title}

)}
) })}
) }