import {getDeviceBrandName, isHwWallet} from '../../wallet/helpers/cryptoProviderUtils' import {h} from 'preact' import actions from '../../actions' import {useActions, useSelector} from '../../helpers/connect' import {useGetCryptoProviderType} from '../../selectors' type Props = { address: string } const AddressVerification = ({address}: Props) => { const {waitingHwWalletOperation, showVerification, verificationError} = useSelector((state) => ({ waitingHwWalletOperation: state.waitingHwWalletOperation, showVerification: state.shouldShowAddressVerification, verificationError: state.addressVerificationError, cryptoProviderInfo: state.cryptoProviderInfo, })) const cryptoProviderType = useGetCryptoProviderType() const {verifyAddress} = useActions(actions) return showVerification && isHwWallet(cryptoProviderType) ? ( verificationError ? (