import { FormattedMessage } from 'react-intl' import ImmutablePropTypes from 'react-immutable-proptypes' import ImmutablePureComponent from 'react-immutable-pure-component' import { NavLink } from 'react-router-dom' import classNames from 'classnames/bind' import { shortNumberFormat } from '../utils/numbers' import Text from './text' import Button from './button' import Image from './image' import TrendingItemCard from './trends_panel_item_card' import DotTextSeperator from './dot_text_seperator' const cx = classNames.bind(_s) export default class TrendingItem extends ImmutablePureComponent { static propTypes = { trend: ImmutablePropTypes.map.isRequired, } state = { hovering: false, } handleOnMouseEnter = () => { this.setState({ hovering: true }) } handleOnMouseLeave = () => { this.setState({ hovering: false }) } render() { const { trend } = this.props const { hovering } = this.state const subtitleClasses = cx({ default: 1, text: 1, displayFlex: 1, fontSize13PX: 1, fontWeightNormal: 1, colorSecondary: 1, underline: hovering, }) return null; // : todo : return ( this.handleOnMouseEnter()} onMouseLeave={() => this.handleOnMouseLeave()} >
1 Politics
Trump Campaign 46.7K Gabs
) } }