+
+
+ setQuery(e.target.value)}
+ onFocus={() => setIsInputFocused(true)}
+ onBlur={() => setIsInputFocused(false)}
+ onPressEnter={(e) => {
+ if (!e.shiftKey) {
+ e.preventDefault();
+ handleSearch();
+ }
+ }}
+ placeholder="Enter your search query..."
+ disabled={isLoading}
+ bordered={false}
+ style={{ fontSize: "15px", padding: 0, height: "100%", boxShadow: "none" }}
+ />
+
+
}
+ loading={isLoading}
+ style={{
+ height: "48px",
+ paddingLeft: "24px",
+ paddingRight: "24px",
+ borderRadius: "8px",
+ fontWeight: 500,
+ fontSize: "15px",
+ backgroundColor: isLoading || !query.trim() ? undefined : "#1890ff",
+ borderColor: isLoading || !query.trim() ? undefined : "#1890ff",
+ boxShadow: "0 1px 2px 0 rgba(0, 0, 0, 0.05)"
+ }}
+ >
+ Search
+
+