import Image from 'next/image'; const iconMap = { 'Deploy on Civo Compute Cloud': '/civo.png', 'Deploy on DigitalOcean Droplet': '/digitalocean.png', 'Deploy on 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.', '')}

); })}
); }