()
| 350 | * without duplicating state handling logic in multiple callers. |
| 351 | */ |
| 352 | export function capturePendingAttachments(): PendingAttachment[] { |
| 353 | const pendingAttachments = [...useChatStore.getState().pendingAttachments] |
| 354 | if (pendingAttachments.length > 0) { |
| 355 | useChatStore.getState().clearPendingAttachments() |
| 356 | } |
| 357 | return pendingAttachments |
| 358 | } |
| 359 | |
| 360 |
no outgoing calls
no test coverage detected