+
{getTitle()}
+
+
+
+
+
+ {!!searchResultState.totalResults &&
+ documentsFoundPlural(searchResultState.totalResults)}
+
+
+
+
+
+ {searchResultState.items.length > 0 ? (
+
+ {searchResultState.items.map(({ title, url, summary, breadcrumbs }, i) => (
+
+
+
+
+
+ {breadcrumbs.length > 0 && (
+
+ )}
+
+ {summary && (
+
+ )}
+
+ ))}
+
+ ) : (
+ [
+ searchQuery && !searchResultState.loading && (
+
+
+ No results were found
+
+
+ ),
+ !!searchResultState.loading &&
,
+ ]
+ )}
+
+ {searchResultState.hasMore && (
+
+
+ Fetching new results...
+
+
+ )}
+
+