import React from 'react' import PropTypes from 'prop-types' import FaAngleDown from 'react-icons/lib/fa/angle-down' import Isvg from 'react-inlinesvg' import paperPlane from 'icons/paper_plane.svg' import hand from 'icons/hand.svg' import link from 'icons/link.svg' import { blockExplorer } from 'lib/utils' import Value from 'components/Value' import { FormattedDate, FormattedTime, FormattedMessage } from 'react-intl' import messages from './messages' import styles from './TransactionModal.scss' const TransactionModal = ({ item: transaction, ticker, currentTicker, network, toggleCurrencyProps: { setActivityModalCurrencyFilters, showCurrencyFilters, currencyName, currentCurrencyFilters, onCurrencyFilterClick } }) => (
{transaction.received ? (
) : (
)}
blockExplorer.showTransaction(network, transaction.tx_hash)} >
{!transaction.received && (
{' '} {currencyName}
)}

{transaction.received ? '+' : '-'}

setActivityModalCurrencyFilters(!showCurrencyFilters)} > {currencyName}
    {currentCurrencyFilters.map(filter => (
  • onCurrencyFilterClick(filter.key)}> {filter.name}
  • ))}
{' '}
) TransactionModal.propTypes = { item: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, toggleCurrencyProps: PropTypes.object.isRequired, network: PropTypes.object.isRequired } export default TransactionModal