UNPKG

@sofaws/dapp-core

Version:

A library to hold the main logic for a dapp on the Elrond Network

3 lines (2 loc) 750 B
import{a as m}from"./chunk-4HYV56MI.js";import{b as e}from"./chunk-I2NWMXXW.js";import{m as n}from"./chunk-HBP5N4FR.js";n();import t from"react";import o from"classnames";var b=({totalSteps:a,currentStep:r,className:l="dapp-progress-steps"})=>{let p=[];for(let s=1;s<=a;s+=1){let i=r===s,f=i||s<r?e.bgPrimary:e.bgSecondary;p.push(t.createElement(m,{"data-testid":`step${s}${i?"active":""}`,key:s,color:f}))}return t.createElement("div",{className:o(e.progressSteps,e.flexRow,e.justifyContentCenter,l)},t.createElement("div",{className:o(e.steps,e.flexRow,e.justifyContentCenter,e.alignItemsCenter,e.positionRelative)},t.createElement("hr",{className:o(e.positionAbsolute,e.w100,e.m0)}),p))};export{b as a}; //# sourceMappingURL=chunk-JQPRRRIR.js.map