import React from 'react'; import cn from 'classnames'; import { Popup } from 'UI'; import stl from './issueListItem.css'; const IssueListItem = ({ issue, onClick, icon, user, active }) => { return (
onClick(issue) } className={ cn(stl.wrapper, active ? 'active-bg' : '', 'flex flex-col justify-between cursor-pointer text-base text-gray-800')} >
{ icon } {/* */} { issue.id }
{ user && } content={ 'Assignee ' + user.name } size="small" position="top right" inverted /> }
{ issue.title }
); }; export default IssueListItem;