| 2342 | }) |
| 2343 | |
| 2344 | const handleFileRender = (options: FileOptionsReq) => { |
| 2345 | return ( |
| 2346 | state: FileState, |
| 2347 | action: Action<FileState, string> |
| 2348 | ): Effect.Effect<string, never, Path.Path | FileSystem.FileSystem> => { |
| 2349 | return Action.$match(action, { |
| 2350 | Beep: () => Effect.succeed(renderBeep), |
| 2351 | NextFrame: ({ state }) => renderFileNextFrame(state, options), |
| 2352 | Submit: ({ value }) => renderFileSubmission(state, value, options) |
| 2353 | }) |
| 2354 | } |
| 2355 | } |
| 2356 | |
| 2357 | const processFileCursorUp = (state: FileState) => { |
| 2358 | if (state.files.length === 0) { |