\n
\n {autocompleteState.collections.map((collection, index) => {\n const { source, items } = collection\n\n return (\n
\n \n {items.length > 0 &&\n items.map(item => {\n return (\n - \n
\n \n
\n \n
\n
c.value)\n .join(', ')\n : item.creator_list.join(', ')\n }}\n />\n
\n \n )\n })}\n \n \n )\n })}\n
\n {\n autocomplete.setIsOpen(false)\n autocomplete.setCollections([\n {\n items: [],\n source: autocompleteState.collections[0].source\n }\n ])\n }}\n />\n
\n )}\n\n {noResults && (\n
\n
\n {!searchResponse && (\n <>\n - \n \n
\n
\n In Search of Quality\n
\n \n \n In order to maintain a level of quality, Analogue\n relies on the curation of our users.\n
\n\n \n Therefore, we've decided not to add all existing\n content from other databases. Every piece of content\n in the database has been referred by a public figure\n or a user of the platform.\n
\n\n \n Thank you for understanding that there may be some\n pieces missing. We hope you will help us add\n meaningful content to our ever-growing catalog.\n
\n
\n }\n >\n
\n \n
\n You have exceptional taste.\n
\n
\n Help build our catalog.\n
\n \n
\n \n {enrichOptions.map(option => (\n
setMediaType(option)}\n >\n
\n {option.icon}\n
\n
\n {option.title}\n
\n
\n ))}\n
\n \n {mediaType ? (\n
\n \n \n Searching for "\n \n {autocompleteState.query}\n \n "\n
\n \n ) : (\n
\n \n Select a medium to search for "\n \n {autocompleteState.query}\n \n "\n
\n \n )}\n >\n )}\n\n {searchResponse && (\n <>\n {searchResponse.num_results > 0 ? (\n mediaType.media.map(\n (key, keyIndex) =>\n searchResponse[key].length > 0 && (\n
\n \n {key}\n
\n {searchResponse[key].map((item, itemIndex) => (\n \n setSelectedResult({\n keyIndex,\n index: itemIndex\n })\n }\n onMouseLeave={() =>\n setSelectedResult({\n keyIndex: -1,\n index: -1\n })\n }\n onClick={() =>\n onAddFromSearch(keyIndex, itemIndex)\n }\n >\n \n \n
\n \n
\n {item.title}\n
\n {item.creators && item.creators.length > 0 ? (\n
\n {item.creators}\n
\n ) : (\n
\n {item.published_at}\n
\n )}\n
\n \n ))}\n \n )\n )\n ) : (\n
\n \n \n
\n \n No results for "\n \n {autocompleteState.query}\n \n "\n
\n \n )}\n >\n )}\n \n\n {searchResponse && searchResponse.num_results > 0 &&
}\n