import React from 'react'; import PropTypes from 'prop-types'; // Inspired by https://stackoverflow.com/a/28056903/4727685 function hexToRGB(hex, alpha) { const r = parseInt(hex.slice(1, 3), 16); const g = parseInt(hex.slice(3, 5), 16); const b = parseInt(hex.slice(5, 7), 16); return `rgba(${r}, ${g}, ${b}, ${alpha})`; } export default function AggregatorLogo({ icon, color }) { return (