- {/* {((content && content !== "") || (htmlContent && htmlContent !== "
")) && ( */}
- {/*
*/}
- {/* Content: */}
- {/* {content}} */}
- {/* customClassName="-m-3" */}
- {/* noBorder */}
- {/* borderOnFocus={false} */}
- {/* editable={false} */}
- {/* ref={editorRef} */}
- {/* /> */}
- {/*
*/}
- {/* )} */}
+ {((content && content !== "") || (htmlContent && htmlContent !== "
")) && (
+
+ Content:
+ ${content}`}
+ customClassName="-m-3"
+ noBorder
+ borderOnFocus={false}
+ editable={false}
+ ref={editorRef}
+ />
+ {/* {content}} */}
+ {/* customClassName="-m-3" */}
+ {/* noBorder */}
+ {/* borderOnFocus={false} */}
+ {/* editable={false} */}
+ {/* ref={editorRef} */}
+ {/* /> */}
+
+ )}
{response !== "" && (
Response:
- ${response}`}
customClassName="-mx-3 -my-3"
noBorder
borderOnFocus={false}
editable={false}
/>
+
+ {/* ${response}`} */}
+ {/* customClassName="-mx-3 -my-3" */}
+ {/* noBorder */}
+ {/* borderOnFocus={false} */}
+ {/* editable={false} */}
+ {/* /> */}
)}
{invalidResponse && (
@@ -185,11 +209,10 @@ export const GptAssistantModal: React.FC
= ({
type="text"
name="task"
register={register}
- placeholder={`${
- content && content !== ""
- ? "Tell AI what action to perform on this content..."
- : "Ask AI anything..."
- }`}
+ placeholder={`${content && content !== ""
+ ? "Tell AI what action to perform on this content..."
+ : "Ask AI anything..."
+ }`}
autoComplete="off"
/>
@@ -225,8 +248,8 @@ export const GptAssistantModal: React.FC
= ({
{isSubmitting
? "Generating response..."
: response === ""
- ? "Generate response"
- : "Generate again"}
+ ? "Generate response"
+ : "Generate again"}