import { QRCodeCanvas as QRCode } from 'qrcode.react'; import React from 'react'; import CopyableInput from 'soapbox/components/copyable-input'; import Icon from 'soapbox/components/icon'; 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;