({ item, isActive })
| 253 | items, |
| 254 | active, |
| 255 | renderItem({ item, isActive }) { |
| 256 | if (Separator.isSeparator(item)) { |
| 257 | return ` ${item.separator}`; |
| 258 | } |
| 259 | const cursor = isActive ? theme.icon.cursor : ' '; |
| 260 | if (item.disabled) { |
| 261 | const disabledLabel = typeof item.disabled === 'string' ? item.disabled : '(disabled)'; |
| 262 | const checkbox = item.checked ? theme.icon.disabledChecked : theme.icon.disabledUnchecked; |
| 263 | return theme.style.disabled(`${cursor}${checkbox} ${item.name} ${disabledLabel}`); |
| 264 | } |
| 265 | if (isActive) { |
| 266 | description = item.description; |
| 267 | } |
| 268 | const checkbox = item.checked ? theme.icon.checked : theme.icon.unchecked; |
| 269 | const name = item.checked ? item.checkedName : item.name; |
| 270 | const color = isActive ? theme.style.highlight : (x: string) => x; |
| 271 | return color(`${cursor}${checkbox} ${name}`); |
| 272 | }, |
| 273 | pageSize, |
| 274 | loop, |
| 275 | }); |
nothing calls this directly
no outgoing calls
no test coverage detected