import React from 'react' import PropTypes from 'prop-types' import { FaCircle } from 'react-icons/lib/fa' import { btc } from 'utils' import styles from './Contact.scss' const OnlineContact = ({ channel, openContactModal }) => (
  • openContactModal(channel)}>

    Online

    {channel.remote_pubkey}

    Can Pay

    {btc.satoshisToBtc(channel.local_balance)}BTC

    Can Receive

    {btc.satoshisToBtc(channel.remote_balance)}BTC

  • ) OnlineContact.propTypes = { channel: PropTypes.object.isRequired, openContactModal: PropTypes.func.isRequired } export default OnlineContact