+ popoverProps={{
+ position: 'bottom-left',
+ modifiers: {offset: {enabled: true, offset: '-12px, 8px'}},
+ }}
+ activeItem={isCustom ? '' : codeLinkProtocol.protocol}
+ inputProps={{style: {width: '300px'}}}
+ items={Object.keys(POPULAR_PROTOCOLS)}
+ itemPredicate={(query: string, protocol: string) =>
+ protocol.toLowerCase().includes(query.toLowerCase())
+ }
+ itemRenderer={(protocol: string, props: any) => (
+
+ )}
+ itemListRenderer={({renderItem, filteredItems}) => {
+ const renderedItems = filteredItems.map(renderItem).filter(Boolean);
+ return {renderedItems} ;
+ }}
+ noResults={ }
+ onItemSelect={(protocol: string) =>
+ setCodeLinkProtocol({protocol, custom: protocol === ''})
+ }
+ >
+ } style={{width: '225px'}}>
+
+ {isCustom ? 'Custom' : POPULAR_PROTOCOLS[codeLinkProtocol.protocol]}
+
+
+
+ {isCustom ? (
+