(id: Key | undefined, state: TableState<unknown>)
| 2347 | } |
| 2348 | |
| 2349 | export function isPrevSelected(id: Key | undefined, state: TableState<unknown>) { |
| 2350 | if (id == null || !state) { |
| 2351 | return false; |
| 2352 | } |
| 2353 | let keyBefore = state.collection.getKeyBefore(id); |
| 2354 | return keyBefore != null && state.selectionManager.isSelected(keyBefore); |
| 2355 | } |
| 2356 | |
| 2357 | function isFirstItem(id: Key | undefined, state: TableState<unknown>) { |
| 2358 | if (id == null || !state) { |
no test coverage detected