import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import ImmutablePureComponent from 'react-immutable-pure-component' import ImmutablePropTypes from 'react-immutable-proptypes' import { NavLink } from 'react-router-dom' import { CX } from '../../../constants' import Input from '../../../components/input' import Avatar from '../../../components/avatar' import Button from '../../../components/button' import Text from '../../../components/text' import RelativeTimestamp from '../../../components/relative_timestamp' import { makeGetAccount } from '../../../selectors' class MessagesItem extends ImmutablePureComponent { static contextTypes = { router: PropTypes.object, } state = { hovering: false, } handleOnMouseEnter = () => { this.setState({ isHovering: true }) } handleOnMouseLeave = () => { this.setState({ isHovering: false }) } render() { const { account, intl, alt, } = this.props const { isHovering } = this.state const content = { __html: 'REEEE i heard you have the sauce2?' } const messageContainerClasses = CX({ d: 1, flexRow: !alt, flexRowReverse: alt, }) const messageInnerContainerClasses = CX({ d: 1, px15: 1, py5: 1, bgSecondary: !alt, bgBrandLight: alt, circle: 1, ml10: 1, mr10: 1, }) const lowerContainerClasses = CX({ d: 1, pt10: 1, pl50: !alt, pr50: alt, }) const buttonContainerClasses = CX({ d: 1, flexRow: 1, displayNone: !isHovering, }) return (