import Link from "next/link"; import { motion } from "framer-motion"; import { ArrowLeft } from "lucide-react"; import { useTranslation } from "react-i18next"; export default function HeaderOfSteps({ step, colors, numberStep }) { const { t } = useTranslation(); return ( <>
{t("forgotPassword.backToLogin")} {t("register.stepOf2", { step: step })}
{numberStep.map((s) => ( = s ? colors : "bg-gray-800"}`} animate={{ scaleX: step >= s ? 1 : 0.5 }} /> ))}
); }