* Exit image input mode if currently active. * Called after successfully adding an image via paste or path.
()
| 10 | * Called after successfully adding an image via paste or path. |
| 11 | */ |
| 12 | function exitImageModeIfActive(): void { |
| 13 | if (useChatStore.getState().inputMode === 'image') { |
| 14 | useChatStore.getState().setInputMode('default') |
| 15 | } |
| 16 | } |
| 17 | |
| 18 | /** |
| 19 | * Process an image file and add it to the pending images state. |
no outgoing calls
no test coverage detected