import { Check } from "react-feather";
interface StepperProps {
currentTx: number;
userTxs: [];
}
export const Stepper = (props: StepperProps) => {
const { currentTx, userTxs } = props;
return (
{userTxs?.map((x, index) => {
return (
index}
/>
);
})}
);
};
const Step = (props: {
active?: boolean;
completed?: boolean;
lastItem?: boolean;
}) => {
const { active, completed, lastItem } = props;
return (
{/* circle */}
{completed && (
)}
{/* line */}
{!lastItem && (
)}
);
};