| 2543 | }) |
| 2544 | |
| 2545 | const handleFileRender = (options: FileOptionsReq) => { |
| 2546 | return ( |
| 2547 | state: FileState, |
| 2548 | action: Action<FileState, string> |
| 2549 | ): Effect.Effect<string, never, Path.Path | FileSystem.FileSystem> => { |
| 2550 | return Action.$match(action, { |
| 2551 | Beep: () => Effect.succeed(renderBeep), |
| 2552 | NextFrame: ({ state }) => renderFileNextFrame(state, options), |
| 2553 | Submit: ({ value }) => renderFileSubmission(state, value, options) |
| 2554 | }) |
| 2555 | } |
| 2556 | } |
| 2557 | |
| 2558 | const processFileCursorUp = (state: FileState) => { |
| 2559 | if (state.files.length === 0) { |