import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import classNames from 'classnames'; import StatusContent from '../status_content'; import Avatar from '../avatar'; import RelativeTimestamp from '../relative_timestamp'; import DisplayName from '../display_name'; import IconButton from '../icon_button'; export default class ActionsModal extends ImmutablePureComponent { static propTypes = { status: ImmutablePropTypes.map, actions: PropTypes.array, onClick: PropTypes.func, }; renderAction = (action, i) => { if (action === null) { return
  • ; } const { icon = null, text, meta = null, active = false, href = '#', isLogout } = action; return (
  • {icon && }
    {text}
    {meta}
  • ); } render () { const status = this.props.status && (
    ); return (
    {status}
    ); } }