JetBrains: TS refactor: extract search result properties to a wrapper
Created by: vdavid
We have this repeated for each search result type:
<div id={`search-result-list-item-${resultId}`}
className={classNames(styles.line, { [styles.lineActive]: resultId === selectedResult })}
onClick={onClick}
key={resultId}>
As @philipp-spiess suggested here, “This part can probably be extracted in a wrapper component and reused (since it got quite specific behavior like the html id property that we need to ensure is correctly used across all search results).”