+ {steps.map(
+ (step, index) => {
+ const state =
+ getState(index);
+
+ const isCompleted =
+ state ===
+ "completed";
+
+ const isCurrent =
+ state ===
+ "current";
+
+ const isUpcoming =
+ state ===
+ "upcoming";
+
+ return (
+
+
+
+ {isCompleted
+ ? "✓"
+ : index + 1}
+
+
+
+ {step.label}
+
+
+
+ {index <
+ steps.length -
+ 1 && (
+
+ )}
+
+ );
+ },
+ )}
+