(id: Key | undefined, state: TableState<unknown>)
| 2331 | } |
| 2332 | |
| 2333 | export function isPrevSelected(id: Key | undefined, state: TableState<unknown>) { |
| 2334 | if (id == null || !state) { |
| 2335 | return false; |
| 2336 | } |
| 2337 | let keyBefore = state.collection.getKeyBefore(id); |
| 2338 | return keyBefore != null && state.selectionManager.isSelected(keyBefore); |
| 2339 | } |
| 2340 | |
| 2341 | function isFirstItem(id: Key | undefined, state: TableState<unknown>) { |
| 2342 | if (id == null || !state) { |
no test coverage detected