| 2899 | } |
| 2900 | |
| 2901 | const handleRenderInteger = (options: IntegerOptionsReq) => { |
| 2902 | return (state: NumberState, action: Action<NumberState, number>) => { |
| 2903 | return Action.$match(action, { |
| 2904 | Beep: () => Effect.succeed(renderBeep), |
| 2905 | NextFrame: ({ state }) => renderNumberNextFrame(state, options), |
| 2906 | Submit: () => renderNumberSubmission(state, options) |
| 2907 | }) |
| 2908 | } |
| 2909 | } |
| 2910 | |
| 2911 | const handleProcessInteger = (options: IntegerOptionsReq) => { |
| 2912 | return (input: Terminal.UserInput, state: NumberState) => { |