{React.Children.map(children, (step, index) =>
React.isValidElement(step)
? React.cloneElement(
step as React.ReactElement,
{ _index: index } as Partial,
)
: step,
)}
);
}
// ---------------------------------------------------------------------------
// Step
// ---------------------------------------------------------------------------
export interface StepProps {
/**
* Injected by `