Pure helper: convert a tab index into the new value the discriminated union should emit. Returns undefined when the index is out of bounds.
undefined
Extracted so the contract is unit-testable without rendering the tabs component. Mirrors the React adapter's discriminatedUnionValueForTab.
discriminatedUnionValueForTab
Pure helper: convert a tab index into the new value the discriminated union should emit. Returns
undefinedwhen the index is out of bounds.Extracted so the contract is unit-testable without rendering the tabs component. Mirrors the React adapter's
discriminatedUnionValueForTab.