(selection?: FileSelection)
| 101 | } |
| 102 | |
| 103 | function cloneSelection(selection?: FileSelection) { |
| 104 | if (!selection) return undefined |
| 105 | return { ...selection } |
| 106 | } |
| 107 | |
| 108 | function clonePart(part: ContentPart): ContentPart { |
| 109 | if (part.type === "text") return { ...part } |