import React from 'react' import PropTypes from 'prop-types' import Zap from 'components/Icon/Zap' import { btc } from 'lib/utils' import Value from 'components/Value' import { FormattedNumber, FormattedTime, injectIntl } from 'react-intl' import messages from './messages' import styles from '../Activity.scss' const Payment = ({ payment, ticker, currentTicker, showActivityModal, nodes, currencyName, intl }) => { const displayNodeName = pubkey => { const node = nodes.find(n => pubkey === n.pub_key) if (node && node.alias.length) { return node.alias } return pubkey.substring(0, 10) } return (