import React from "react"; import classNames from "@calcom/lib/classNames"; type Props = { steps: number; currentStep: number; }; // It might be worth passing this label string from outside the component so we can translate it? function FormStep({ currentStep, steps }: Props) { return (

Step {currentStep} of {steps}

{[...Array(steps)].map((_, j) => { console.log({ j, currentStep }); return (
= j ? "bg-black" : "bg-gray-400" )} key={j} /> ); })}
); } export default FormStep;