import React from 'react' import PropTypes from 'prop-types' import PaperPlane from 'components/Icon/PaperPlane' import Hand from 'components/Icon/Hand' import ChainLink from 'components/Icon/ChainLink' import { Dropdown } from 'components/UI' 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: { currencyName, currencyFilters, setCurrency } }) => (
{transaction.received ? (
) : (
)}
blockExplorer.showTransaction(network, transaction.tx_hash)} >
{!transaction.received && (
{' '} {currencyName}
)}
{transaction.received ? '+' : '-'}
{' '}
) 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