(collection: ICollection<Node<T>>, key: Key | null)
| 367 | |
| 368 | // The position of a step within the wizard, or -1 if the key isn't one of its steps. |
| 369 | function getStepIndex<T>(collection: ICollection<Node<T>>, key: Key | null): number { |
| 370 | return key != null ? (collection.getItem(key)?.index ?? -1) : -1; |
| 371 | } |
| 372 | |
| 373 | function WizardInner({props, collection, tabsRef}: WizardInnerProps) { |
| 374 | let { |
no test coverage detected