3 changed files with 17 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||||
|
import React from 'react' |
||||
|
import PropTypes from 'prop-types' |
||||
|
import { FaBitcoin } from 'react-icons/lib/fa' |
||||
|
// import Litecoin from '../resources/'
|
||||
|
|
||||
|
const CryptoIcon = ({ currency }) => { |
||||
|
switch(currency) { |
||||
|
case 'btc': |
||||
|
return (<FaBitcoin />) |
||||
|
break |
||||
|
case 'ltc': |
||||
|
return <span>LTC</span> |
||||
|
break |
||||
|
default: |
||||
|
return <span></span> |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue