import clsx from "clsx"; import { useTranslation } from "next-i18next"; import React from "react"; export interface StepsProps { current: number; total: number; className?: string; } const Steps: React.VoidFunctionComponent = ({ current, total, className, }) => { const { t } = useTranslation("app"); return (
{t("stepSummary", { current: current + 1, total, })}
{[...Array(total)].map((_, i) => { return ( current, "ring-4 ring-indigo-200 animate-pulse": i === current, })} /> ); })}
); }; export default Steps;