import React, { Suspense } from "react"; import { useImage } from "react-image"; type TokenLogoProps = { address: string; name: string; }; const TokenLogo: React.FC = (props) => ( }> ); const InternalTokenLogo: React.FC = ({ address, name }) => { const { src } = useImage({ srcList: [ `http://localhost:3001/assets/${address}/logo.png`, "/eth-diamond-black.png", ], }); return (
{`${name}
); }; export default React.memo(TokenLogo);