import React from 'react'; import { Slide } from '../../types'; import { motion } from 'framer-motion'; import { ArrowDown, ArrowRight } from 'lucide-react'; export const ProcessSlide: React.FC<{ slide: Slide }> = ({ slide }) => { const isDiagram = slide.type === 'diagram'; const steps = slide.content.steps; if (!steps) return null; return (

{slide.title}

{isDiagram ? ( // Horizontal Flow with Icons
{steps.map((step: any, idx) => (
{step.icon}
{step.label}
{idx < steps.length - 1 && ( )} {idx < steps.length - 1 && (
)}
))}
) : ( // Vertical Numbered List
{steps.map((step, idx) => (
{idx + 1}
{/* Connecting line */} {idx < steps.length - 1 && (
)}

{typeof step === 'string' ? step : (step as any).label}

))}
)}
); };