import { PhoneCall, ClipboardCheck, Cpu, HeartHandshake, HelpCircle, ShieldAlert, Construction, Layers, MonitorDown, Server, Gauge, Zap, BookOpen } from "lucide-react"; import { SectionHeading } from "../common/SectionHeading"; import { mainProcessSteps } from "@/content/process"; import { ProcessStep } from "@/types/types"; const iconMap: Record> = { PhoneCall, ClipboardCheck, Cpu, HeartHandshake, ShieldAlert, Construction, Layers, MonitorDown, Server, Gauge, Zap, BookOpen, }; interface ProcessStepsProps { steps?: ProcessStep[]; title?: string; subtitle?: string; eyebrow?: string; } export function ProcessSteps({ steps = mainProcessSteps, title = "Prosty proces współpracy w 4 krokach", subtitle = "Od momentu kontaktu do pełnego uruchomienia i serwisu — dbamy o każdy detal na każdym etapie.", eyebrow = "Jak Działamy" }: ProcessStepsProps) { return (
{/* Process Steps Timeline */}
{/* Desktop connecting line (only if few steps, otherwise wrap) */}
{steps.map((step, idx) => { const Icon = iconMap[step.icon || ""] || HelpCircle; return (
{/* Circle Badge with Icon & Number */}
{/* Step Number */} {step.icon && iconMap[step.icon] && ( {step.number} )} {step.icon && iconMap[step.icon] ? : {step.number} }
{/* Title & Description */}

{step.title}

{step.description}

); })}
); }