import { cn } from "@/lib/utils"; import { useTranslation } from "react-i18next"; type StepIndicatorProps = { steps: string[]; currentStep: number; translationNameSpace: string; }; export default function StepIndicator({ steps, currentStep, translationNameSpace, }: StepIndicatorProps) { const { t } = useTranslation(translationNameSpace); return (
{steps.map((name, idx) => (
{idx + 1}
{t(name)}
))}
); }