import React from 'react' import { AnimateIn } from '@/components/AnimateIn' interface Step { stepNumber: string title: string description?: string } interface ProcessStepsBlockProps { badge?: string heading: string subheading?: string steps?: Step[] backgroundImage?: string | { url?: string } | null } export function ProcessStepsBlockComponent(props: ProcessStepsBlockProps) { const { badge, heading, subheading, steps, backgroundImage } = props const bgUrl = (typeof backgroundImage === 'object' && backgroundImage?.url) || (typeof backgroundImage === 'string' && backgroundImage) || null return (
{/* Dark overlay for contrast */}
{badge && (
{badge}
)}

{heading}

{subheading && (

{subheading}

)}
{steps && steps.length > 0 && (
{steps.map((step, idx) => (
{step.stepNumber}

{step.title}

{step.description && (

{step.description}

)}
))}
)}
) }