"use client"; import React from "react"; import { Check, ArrowRight } from "lucide-react"; interface StepProgressProps { currentStep: 1 | 2 | 3; onStepChange: (step: 1 | 2 | 3) => void; } const steps = [ { id: 1, title: "연결 선택", description: "FROM/TO 연결 설정" }, { id: 2, title: "테이블 선택", description: "소스/타겟 테이블 선택" }, { id: 3, title: "필드 매핑", description: "시각적 필드 매핑" }, ]; export const StepProgress: React.FC = ({ currentStep, onStepChange, }) => { return (
{steps.map((step, index) => (
step.id <= currentStep && onStepChange(step.id as 1 | 2 | 3)} >
{step.id < currentStep ? ( ) : ( step.id )}

{step.title}

{step.description}

{index < steps.length - 1 && ( )}
))}
); };