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.
24 lines
583 B
24 lines
583 B
import React from 'react'
|
|
import PropTypes from 'prop-types'
|
|
import Isvg from 'react-inlinesvg'
|
|
|
|
import skinnyBitcoinIcon from 'icons/skinny_bitcoin.svg'
|
|
import litecoinIcon from 'icons/litecoin.svg'
|
|
|
|
const CryptoIcon = ({ currency, styles }) => {
|
|
switch (currency) {
|
|
case 'btc':
|
|
return <Isvg style={styles} src={skinnyBitcoinIcon} />
|
|
case 'ltc':
|
|
return <Isvg style={styles} src={litecoinIcon} />
|
|
default:
|
|
return <span />
|
|
}
|
|
}
|
|
|
|
CryptoIcon.propTypes = {
|
|
currency: PropTypes.string.isRequired,
|
|
styles: PropTypes.object
|
|
}
|
|
|
|
export default CryptoIcon
|
|
|