import React from 'react'; interface CalloutCardProps { iconUrl: string; token: string; ca: string; priceAtCreation: number; priceNow: number; gains: number; dexUrl: string; } const CalloutCard: React.FC = ({ iconUrl, token, ca, priceAtCreation, priceNow, gains, dexUrl }) => { const truncateAddress = (address: string) => { return `${address.slice(0, 6)}...${address.slice(-5)}`; }; return (
{token}

{truncateAddress(ca)}

{`$${priceAtCreation} => $${priceNow}`}

0 ? 'text-green-700' : 'text-red-700'}`}>{`${(gains * 100).toFixed(2)}%`}

); }; export default CalloutCard;