import { FC, ReactElement } from "react"; type TRegisterMentorStep = { step: number; }; const steps = [ "Informasi Personal", "Detail Mentor", "Sesi Mentoring & Dokumen Pendukung", "Informasi Akun Pribadi", ]; export const RegisterMentorStep: FC = ({ step }): ReactElement => { const progressPercent = ((step - 1) / (steps.length - 1)) * 100; return (
{/* Garis dasar (abu/biru muda) */}
{/* Garis progress biru (dinamis) */}
{steps.map((label, index) => { const currentStep = index + 1; const isActive = currentStep === step; return (
{/* Lingkaran angka */}
{currentStep}
{/* Label */} {label}
); })}
); };