(state: SelectState, choices: SelectOptionsReq<A>["choices"])
| 3536 | } |
| 3537 | |
| 3538 | const processSelectCursorDown = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3539 | if (state === choices.length - 1) { |
| 3540 | return Effect.succeed(Action.NextFrame({ state: 0 })) |
| 3541 | } |
| 3542 | return Effect.succeed(Action.NextFrame({ state: state + 1 })) |
| 3543 | } |
| 3544 | |
| 3545 | const processSelectNext = <A>(state: SelectState, choices: SelectOptionsReq<A>["choices"]) => { |
| 3546 | return Effect.succeed(Action.NextFrame({ state: (state + 1) % choices.length })) |
no test coverage detected