+ {queuedUserMessages.map((message) => {
+ const isEditing = editingQueuedMessageId === message.id
+ return (
+
+
+ subdirectory_arrow_right
+
+ {isEditing ? (
+ <>
+ setEditingQueuedMessageText(event.target.value)}
+ onKeyDown={(event) => {
+ if (event.key === 'Enter') {
+ event.preventDefault()
+ saveQueuedMessageEdit()
+ }
+ if (event.key === 'Escape') {
+ event.preventDefault()
+ cancelQueuedMessageEdit()
+ }
+ }}
+ aria-label={t('chat.pendingMessageEditInput')}
+ className="min-w-0 flex-1 rounded-[6px] border border-[var(--color-border)] bg-[var(--color-surface)] px-2 py-1 text-xs text-[var(--color-text-primary)] outline-none focus:border-[var(--color-border-focus)]"
+ autoFocus
+ />
+
+
+ >
+ ) : (
+ <>
+
+ {message.displayContent}
+
+
+
+
+ >
+ )}
+
+ )
+ })}
+
+ )}
+
{composerAttachments.length > 0 && (
isHeroComposer ? (