{ if (fileId.startsWith('attachment-')) { const index = parseInt(fileId.replace('attachment-', ''), 10); if (!isNaN(index) && index >= 0 && index < editedExtras.length) { handleRemoveExistingAttachment(index); } } else { handleRemoveUploadedFile(fileId); } }} limitToSingleRow class="py-5" style="scroll-padding: 1rem;" />
{ autoResizeTextarea(e.currentTarget); onEditedContentChange(e.currentTarget.value); }} onpaste={handlePaste} placeholder="Edit your message..." >
fileInputElement?.click()} type="button" title="Add attachment" >
Attach files
{#if isRouter}
{/if}
{saveWithoutRegenerate ? 'Save' : 'Send'}
{#if showSaveOnlyOption && onSaveEditOnly}
Update without re-sending
{:else}
{/if}
Cancel
(showDiscardDialog = false)} />