import QRCode from 'qrcode.react'; import React from 'react'; import Icon from 'soapbox/components/icon'; import { CopyableInput } from 'soapbox/features/forms'; import { getExplorerUrl } from '../utils/block_explorer'; import { getTitle } from '../utils/coin_db'; import CryptoIcon from './crypto_icon'; interface IDetailedCryptoAddress { address: string, ticker: string, note?: string, } const DetailedCryptoAddress: React.FC = ({ address, ticker, note }): JSX.Element => { const title = getTitle(ticker); const explorerUrl = getExplorerUrl(ticker, address); return (
{title || ticker.toUpperCase()}
{explorerUrl && }
{note &&
{note}
}
); }; export default DetailedCryptoAddress;