+
+
+
+
+
+ {isLoading && (
+
+ )}
+
+
+
+
+
+
+
+
+
+
+ {results.length > 0 && }
+
+ {/* Explicit Error State */}
+ {errorMsg && !isLoading && (
+
+ {errorMsg}
+
+ )}
+
+ {!debouncedQuery && !errorMsg && (
+
+ Type a query to search {searchType === 'docs' ? 'Guides & Docs' : 'API Endpoints'}.
+
+ )}
+
+ {!isLoading && debouncedQuery && results.length === 0 && !errorMsg && (
+
+ No results found in {searchType === 'docs' ? 'Docs' : 'API Endpoints'} for "{debouncedQuery}".
+
+ )}
+
+