+
{
+ if (event.key === "Enter" && !lockChat) {
+ sendMessage();
+ }
+ }}
+ type="text"
+ disabled={lockChat}
+ value={lockChat ? "Thinking..." : chatValue}
+ onChange={(e) => {
+ setChatValue(e.target.value);
+ }}
+ className={classNames(
+ lockChat
+ ? "bg-gray-500 text-white"
+ : "dark:bg-gray-700",
+ "form-input block w-full rounded-md border-gray-300 dark:border-gray-600 dark:text-white pr-10 sm:text-sm"
+ )}
+ placeholder={"Send a message..."}
+ />
+
+
+