(items: DropdownItem[])
| 117 | |
| 118 | const activeItem = React.useMemo(() => { |
| 119 | const findItem = (items: DropdownItem[]): DropdownItemProps | null => { |
| 120 | for (const item of items) { |
| 121 | if (item !== 'separator' && item.value === value) return item |
| 122 | } |
| 123 | return null |
| 124 | } |
| 125 | return findItem(items) |
| 126 | }, [items, value]) |
| 127 |
no outgoing calls
no test coverage detected
searching dependent graphs…