import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { Utils } from '../../utils/utils'; import './searched-list-item.css'; const propTypes = { currentItem: PropTypes.object, onItemClick: PropTypes.func.isRequired, onSearchedItemDoubleClick: PropTypes.func.isRequired, item: PropTypes.object, }; class SearchedListItem extends React.Component { onClick = () => { this.props.onItemClick(this.props.item); }; searchItemDoubleClick = () => { this.props.onSearchedItemDoubleClick(this.props.item); }; render() { let { item, currentItem } = this.props; return (