- {collection.source.sourceId === 'querySuggestionsPlugin' && !inputProps.value && (
-
- Trending Searches
-
- )}
- {collection.source.sourceId === 'recentSearchesPlugin' && (
-
- Search History
-
- )}
-
- {items.map((item, index) => (
- -
- {collection.source.sourceId === 'querySuggestionsPlugin' && (
-
- )}
- {collection.source.sourceId === 'recentSearchesPlugin' && (
-
- )}
-
- ))}
-
-
- );
- }
-
- // Rendering of regular items
-
- return autocompleteState.query !== '' ? (
-