import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import users from '../../users'; import IconFromUserType from './IconFromUserType'; const Result = ({ userId, isSelected, onClick }) => ( // eslint-disable-next-line
{users.byId[userId].value}
); Result.propTypes = { userId: PropTypes.string.isRequired, isSelected: PropTypes.bool.isRequired, onClick: PropTypes.func.isRequired, }; export default Result;