Files
wehub-resource-sync 3a28426bf4
Lint and Format Check / lint-and-format (push) Failing after 0s
Check Migrations / Check for duplicate migration numbers (push) Failing after 1s
CI Pre-merge Check / CI Pre-merge Check (push) Failing after 2m17s
chore: import upstream snapshot with attribution
2026-07-13 12:23:40 +08:00

28 lines
894 B
Plaintext

export const ServiceIcons = ({ services }) => {
const iconMap = {
database: { src: '/images/icons/database.svg', title: 'Database' },
auth: { src: '/images/icons/auth.svg', title: 'Authentication' },
storage: { src: '/images/icons/storage.svg', title: 'Storage' },
ai: { src: '/images/icons/ai.svg', title: 'AI Services' },
functions: { src: '/images/icons/function.svg', title: 'Edge Functions' }
};
return (
<div className="flex gap-2 mt-3" style={{pointerEvents: 'none'}}>
{services.map((service) => {
const icon = iconMap[service.toLowerCase()];
return icon ? (
<img
key={service}
src={icon.src}
alt={icon.title}
title={icon.title}
className="w-5 h-5 opacity-70"
style={{pointerEvents: 'none'}}
/>
) : null;
})}
</div>
);
};