import {Fragment, h} from 'preact' import CopyOnClick from '../../common/copyOnClick' import AddressVerification from '../../common/addressVerification' import * as QRious from '../../../libs/qrious' import ViewAddressOn from './viewAddressOn' import {DropdownCaret} from '../../common/svg' import {getCexplorerUrl} from '../../../helpers/common' interface Props { address: string bip32path: string isExpanded: boolean expand: () => void } const AddressItem = ({address, bip32path, isExpanded, expand}: Props): h.JSX.Element => { const explorerLinksInline = (
) const explorerLinks = (
) const addressHash = ( {address} {address} ) return (
{`/${bip32path.split('/').pop()}`}
{addressHash}
{explorerLinksInline}
{explorerLinks}
Derivation path: {bip32path}
Copy Address
) } export default AddressItem