import Image from 'next/image'; const iconMap = { 'Amazon Lightsail': '/lightsail.png', 'Railway': '/railway.png', 'Civo Compute Cloud': '/civo.png', 'DigitalOcean Droplet': '/digitalocean.png', 'Kamatera Cloud': '/kamatera.png', }; export function DeploymentCards({ items }) { return ( <>
{items.map(({ title, link, description }) => { const isExternal = link.startsWith('https://'); const iconSrc = iconMap[title] || '/default-icon.png'; // Default icon if not found return (
{iconSrc &&
{title}
} {/* Reduced icon size */}

{title}

{description &&

{description}

}

{new URL(link).hostname.replace('www.', '')}

); })}
); }