import React from 'react' import PropTypes from 'prop-types' import { btc } from 'lib/utils' import { Value } from 'components/UI' import CheckCircle from 'components/Icon/CheckCircle' import { FormattedNumber, FormattedTime, FormattedMessage, injectIntl } from 'react-intl' import messages from './messages' import styles from '../Activity.scss' const Invoice = ({ invoice, ticker, currentTicker, showActivityModal, currencyName, intl }) => (
showActivityModal('INVOICE', invoice.payment_request)} >

{invoice.settled ? ( ) : ( )}

+ {currencyName}
) Invoice.propTypes = { invoice: PropTypes.object.isRequired, ticker: PropTypes.object.isRequired, currentTicker: PropTypes.object.isRequired, showActivityModal: PropTypes.func.isRequired, currencyName: PropTypes.string.isRequired } export default injectIntl(Invoice)