import React from 'react' import PropTypes from 'prop-types' import QRCode from 'qrcode.react' import copy from 'copy-to-clipboard' import { showNotification } from 'lib/utils/notifications' import Value from 'components/Value' import { Dropdown } from 'components/UI' import { FormattedDate, FormattedTime, FormattedMessage } from 'react-intl' import Countdown from '../Countdown' import messages from './messages' import styles from './InvoiceModal.scss' const InvoiceModal = ({ item: invoice, ticker, currentTicker, toggleCurrencyProps: { currencyFilters, setCurrency } }) => { const copyPaymentRequest = () => { copy(invoice.payment_request) showNotification('Noice', ) } const countDownDate = parseInt(invoice.creation_date, 10) + parseInt(invoice.expiry, 10) return (

{' '}

{!invoice.settled && (

)} {invoice.settled && (

)}

{invoice.memo}

{invoice.payment_request}

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