import React from 'react' import PropTypes from 'prop-types' import { FaAngleDown } from 'react-icons/lib/fa' import { blockExplorer } from 'utils' import Value from 'components/Value' import styles from './TransactionModal.scss' const TransactionModal = ({ transaction, ticker, currentTicker, toggleCurrencyProps: { setActivityModalCurrencyFilters, showCurrencyFilters, currencyName, currentCurrencyFilters, onCurrencyFilterClick } }) => (

0 && styles.active}`}> { transaction.amount > 0 ? '+' : '-' }

setActivityModalCurrencyFilters(!showCurrencyFilters)}> {currencyName}
    { currentCurrencyFilters.map(filter =>
  • onCurrencyFilterClick(filter.key)}>{filter.name}
  • ) }

{transaction.num_confirmations} {transaction.num_confirmations > 1 ? 'confirmations' : 'confirmation'}

{currencyName} fee

Transaction

blockExplorer.showTransaction(transaction.tx_hash)}>{transaction.tx_hash}

Block

blockExplorer.showBlock(transaction.block_hash)}>{transaction.block_hash}

) TransactionModal.propTypes = { transaction: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, toggleCurrencyProps: PropTypes.object.isRequired } export default TransactionModal