+ {/* Logo with animated gradient */}
+
+
+
+
+ {/* Welcome message */}
+
+
+
+ Ready to assist you
+
+
+ Ask me anything or try one of the suggestions below
+
+
+
+
+ {/* Input area with integrated functions and file upload */}
+
+
+ setInputValue(e.target.value)}
+ className="w-full text-gray-700 text-base outline-none placeholder:text-gray-400"
+ />
+
+
+ {/* Uploaded files */}
+ {uploadedFiles.length > 0 && (
+
+
+ {uploadedFiles.map((file, index) => (
+
+
+ {file}
+
+
+ ))}
+
+
+ )}
+
+ {/* Search, Deep Research, Reason functions and actions */}
+
+
+
+
+
+
+
+
+
+ {/* Upload files */}
+
+
+
+
+
+ {/* Command categories */}
+
+ }
+ label="Learn"
+ isActive={activeCommandCategory === "learn"}
+ onClick={() =>
+ setActiveCommandCategory(
+ activeCommandCategory === "learn" ? null : "learn"
+ )
+ }
+ />
+ }
+ label="Code"
+ isActive={activeCommandCategory === "code"}
+ onClick={() =>
+ setActiveCommandCategory(
+ activeCommandCategory === "code" ? null : "code"
+ )
+ }
+ />
+ }
+ label="Write"
+ isActive={activeCommandCategory === "write"}
+ onClick={() =>
+ setActiveCommandCategory(
+ activeCommandCategory === "write" ? null : "write"
+ )
+ }
+ />
+
+
+ {/* Command suggestions */}
+
+ {activeCommandCategory && (
+
+
+
+
+ {activeCommandCategory === "learn"
+ ? "Learning suggestions"
+ : activeCommandCategory === "code"
+ ? "Coding suggestions"
+ : "Writing suggestions"}
+
+
+
+ {commandSuggestions[
+ activeCommandCategory as keyof typeof commandSuggestions
+ ].map((suggestion, index) => (
+ handleCommandSelect(suggestion)}
+ className="p-3 hover:bg-gray-50 cursor-pointer transition-colors duration-75"
+ >
+
+ {activeCommandCategory === "learn" ? (
+
+ ) : activeCommandCategory === "code" ? (
+
+ ) : (
+
+ )}
+
+ {suggestion}
+
+
+
+ ))}
+
+
+
+ )}
+
+