import { cn } from "@rallly/ui"; import type React from "react"; import { useTranslation } from "@/i18n/client"; export interface StepsProps { current: number; total: number; className?: string; } const Steps: React.FunctionComponent = ({ current, total, className, }) => { const { t } = useTranslation(); return (
{t("stepSummary", { current: current + 1, total, })}
{[...Array(total)].map((_, i) => { return ( current, "animate-pulse ring-4 ring-primary-200": i === current, })} /> ); })}
); }; export default Steps;