(state: SelectState, choices: SelectOptionsReq<A>["choices"])
| 3529 | }) |
| 3530 | |
| 3531 | const processSelectCursorUp = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3532 | if (state === 0) { |
| 3533 | return Effect.succeed(Action.NextFrame({ state: choices.length - 1 })) |
| 3534 | } |
| 3535 | return Effect.succeed(Action.NextFrame({ state: state - 1 })) |
| 3536 | } |
| 3537 | |
| 3538 | const processSelectCursorDown = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3539 | if (state === choices.length - 1) { |
no test coverage detected