import React, { memo } from 'react' import { LoaderIcon } from 'react-hot-toast' import PoolCard from './PoolCard' const PoolCards = memo( ({ pools, address }: { pools: any; address: string }) => { const poolChainIds = pools ? Object.keys(pools) : [] return ( <> {pools ? ( poolChainIds.map((chainId) => { return ( {pools[chainId] && pools[chainId]?.length > 0 && pools[chainId].map((pool) => { return ( ) })} ) }) ) : (
)} ) } ) export default PoolCards