scripts/apps/search/components/MediaPreview.tsx
Function MediaPreview
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const MediaPreview: React.StatelessComponent<IProps> = (props) => {
const {item, multiSelect} = props;
const headline = item.headline || item.slugline || item.type;
// headline could contains html tags hence stripping for tooltips
const headlineText = headline.replace(/(<([^>]+)>)/ig, '');