import { NavLink } from 'react-router-dom' import classNames from 'classnames/bind' import Icon from './icon' const cx = classNames.bind(_s) export default class ListItem extends PureComponent { static propTypes = { isLast: PropTypes.bool, to: PropTypes.string, title: PropTypes.string, onClick: PropTypes.func, } render() { const { to, title, isLast } = this.props const containerClasses = cx({ default: 1, cursorPointer: 1, noUnderline: 1, px15: 1, py15: 1, flexRow: 1, alignItemsCenter: 1, backgroundSubtle_onHover: 1, borderColorSecondary: !isLast, borderBottom1PX: !isLast, }) return ( {title} ) } }