( focusableOptionsWithIds: FocusableOptionWithId<Option>[], focusedOption: Option )
| 537 | } |
| 538 | |
| 539 | const getFocusedOptionId = <Option,>( |
| 540 | focusableOptionsWithIds: FocusableOptionWithId<Option>[], |
| 541 | focusedOption: Option |
| 542 | ) => { |
| 543 | const focusedOptionId = focusableOptionsWithIds.find( |
| 544 | (option) => option.data === focusedOption |
| 545 | )?.id; |
| 546 | return focusedOptionId || null; |
| 547 | }; |
| 548 | |
| 549 | const getOptionLabel = < |
| 550 | Option, |
no outgoing calls
no test coverage detected