--- /** * Shared Steps/How It Works Section component * Displays a step-by-step guide with alternating image positions */ import Container from '../atoms/Container.astro'; import Card from '../atoms/Card.astro'; import SectionHeader from '../atoms/SectionHeader.astro'; interface Step { number: string | number; title: string; description: string; image?: string; imageAlt?: string; } interface Props { title: string; subtitle?: string; steps: Step[]; showImages?: boolean; alternateLayout?: boolean; class?: string; id?: string; } const { title, subtitle, steps, showImages = true, alternateLayout = true, class: className = '', id } = Astro.props; ---
{steps.map((step, index) => (
{step.number}

{step.title}

{step.description}

{showImages && step.image && (
{step.imageAlt
)}
))}