(state: SelectState, choices: SelectOptionsReq<A>["choices"])
| 3291 | }) |
| 3292 | |
| 3293 | const processSelectCursorUp = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3294 | if (state === 0) { |
| 3295 | return Effect.succeed(Action.NextFrame({ state: choices.length - 1 })) |
| 3296 | } |
| 3297 | return Effect.succeed(Action.NextFrame({ state: state - 1 })) |
| 3298 | } |
| 3299 | |
| 3300 | const processSelectCursorDown = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3301 | if (state === choices.length - 1) { |
no test coverage detected