dAppBooster
    Preparing search index...
    TokenLogo: FC<TokenLogoProps> = ...

    TokenLogo component, displays a token logo based on the provided token object.

    Native tokens (detected via isNativeToken(token.address), a case-insensitive match against env.PUBLIC_NATIVE_TOKEN_ADDRESS) render the chain-specific icon from @web3icons/react when the chain is mapped in nativeTokenIcons. Otherwise the component renders logoURI as an image, falling back to the colored-letter Placeholder on load failure or missing URI.

    TokenLogo component props.

    The token object to display the logo for.

    The size of the logo in pixels.

    <TokenLogo
    token={myToken}
    size={32}
    />