Add steps for face step indicator (#17719)

This commit is contained in:
Nicolas Mowen
2025-04-15 13:09:47 -05:00
committed by GitHub
parent 760ed25f0c
commit 9e666ddf40
3 changed files with 17 additions and 3 deletions
@@ -1,13 +1,18 @@
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 (
<div className="flex flex-row justify-evenly">
{steps.map((name, idx) => (
@@ -20,7 +25,7 @@ export default function StepIndicator({
>
{idx + 1}
</div>
<div className="w-24 text-center md:w-24">{name}</div>
<div className="w-24 text-center md:w-24">{t(name)}</div>
</div>
))}
</div>