- {ROLES.map((r) => (
-
- ))}
-
- )}
-
setFocusingInput(true)}
- onBlur={() => {
- setFocusingInput(false);
- // If the selection is not removed when the user loses focus, some
- // extensions like "Translate" will always display a floating bar
- window?.getSelection()?.removeAllRanges();
- }}
- onInput={(e) =>
- props.update({
- ...props.prompt,
- content: e.currentTarget.value as any,
- })
- }
- />
- {!focusingInput && (
-
}
- className={chatStyle["context-delete-button"]}
- onClick={() => props.remove()}
- bordered
- />
+ {!focusingInput && (
+ <>
+
+
+
+
+ >
+ )}
+
setFocusingInput(true)}
+ onBlur={() => {
+ setFocusingInput(false);
+ // If the selection is not removed when the user loses focus, some
+ // extensions like "Translate" will always display a floating bar
+ window?.getSelection()?.removeAllRanges();
+ }}
+ onInput={(e) =>
+ props.update({
+ ...props.prompt,
+ content: e.currentTarget.value as any,
+ })
+ }
+ />
+ {!focusingInput && (
+
}
+ className={chatStyle["context-delete-button"]}
+ onClick={() => props.remove()}
+ bordered
+ />
+ )}
+
)}
-