import type { BoxProps } from '@chakra-ui/react'; import React from 'react'; import type { TokenInfo } from '@blockscout/interchain-indexer-types'; import type { ExternalChain } from 'types/externalChains'; import type { EntityProps as TokenEntityProps } from 'ui/shared/entities/token/TokenEntity'; import TokenEntityInterchain from 'ui/shared/entities/token/TokenEntityInterchain'; import type { Props as AssetValueProps } from './AssetValue'; import AssetValue from './AssetValue'; interface Props extends Omit { token: TokenInfo; chain: ExternalChain | undefined; tokenEntityProps?: Omit & BoxProps; } const TokenValueInterchain = ({ token, tokenEntityProps, chain, ...rest }: Props) => { const tokenInfo = React.useMemo(() => { return { symbol: token.symbol ?? null, address_hash: token.address_hash, icon_url: token.icon_url ?? null, name: token.name ?? null, type: 'ERC-20', reputation: null, }; }, [ token.address_hash, token.icon_url, token.name, token.symbol ]); const asset = ( ); return ( ); }; export default React.memo(TokenValueInterchain);