import classNames from "@calcom/lib/classNames"; import { useLocale } from "@calcom/lib/hooks/useLocale"; interface ISteps { maxSteps: number; currentStep: number; navigateToStep: (step: number) => void; } const Steps = (props: ISteps) => { const { maxSteps, currentStep, navigateToStep } = props; const { t } = useLocale(); return (

{t("current_step_of_total", { currentStep: currentStep + 1, maxSteps })}

{new Array(maxSteps).fill(0).map((_s, index) => { return index <= currentStep ? (
navigateToStep(index)} className={classNames( "h-1 w-full rounded-[1px] bg-black dark:bg-white", index < currentStep ? "cursor-pointer" : "" )} /> ) : (
); })}
); }; export { Steps };