You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
428 B

import React from 'react'
import PropTypes from 'prop-types'
import { btc } from 'utils'
const Value = ({ value, currency, currentTicker }) => (<i>{btc.convert('sats', currency, value, currentTicker.price_usd)}</i>)
Value.propTypes = {
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number
]),
currency: PropTypes.string.isRequired,
currentTicker: PropTypes.object.isRequired
}
export default Value