(
blockUpdater: (blocks: ContentBlock[]) => ContentBlock[],
)
| 39 | } |
| 40 | |
| 41 | const updateAiMessageBlocks = ( |
| 42 | blockUpdater: (blocks: ContentBlock[]) => ContentBlock[], |
| 43 | ) => { |
| 44 | updateAiMessage((msg) => ({ |
| 45 | ...msg, |
| 46 | blocks: blockUpdater(msg.blocks ?? []), |
| 47 | })) |
| 48 | } |
| 49 | |
| 50 | const addBlock = (block: ContentBlock) => { |
| 51 | updateAiMessage((msg) => ({ |
nothing calls this directly
no test coverage detected