import React from 'react' import PropTypes from 'prop-types' import Isvg from 'react-inlinesvg' import link from 'icons/link.svg' import { btc } from 'lib/utils' import Value from 'components/Value' import { FormattedNumber, FormattedTime, FormattedMessage, injectIntl } from 'react-intl' import messages from './messages' import styles from '../Activity.scss' const Transaction = ({ transaction, ticker, currentTicker, showActivityModal, currencyName, intl }) => (
showActivityModal('TRANSACTION', transaction.tx_hash)} >

{transaction.received ? ( ) : ( )}

{transaction.received ? '+' : '-'} {currencyName}
) Transaction.propTypes = { transaction: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, showActivityModal: PropTypes.func.isRequired, currencyName: PropTypes.string.isRequired } export default injectIntl(Transaction)