MCPcopy Create free account
hub / github.com/ShipSecAI/studio / getLogoUrl

Function getLogoUrl

frontend/src/pages/IntegrationsManager.tsx:428–442  ·  view source on GitHub ↗
(providerId: string)

Source from the content-addressed store, hash-verified

426 // Get colored logo URL using Logo.dev (recommended alternative to Clearbit Logo API)
427 // Reference: https://clearbit.com/blog/the-future-of-clearbits-free-tools
428 const getLogoUrl = (providerId: string) => {
429 // Map provider IDs to domain names for Logo.dev
430 const domainMap: Record<string, string> = {
431 github: 'github.com',
432 zoom: 'zoom.us',
433 // Add more providers as needed: 'provider-id': 'domain.com'
434 };
435
436 const domain = domainMap[providerId.toLowerCase()];
437 if (!domain) return null;
438
439 // Logo.dev provides colored brand logos via CDN (free alternative to Clearbit)
440 // Read public key from environment variable
441 return `https://img.logo.dev/${domain}?token=${env.VITE_LOGO_DEV_PUBLIC_KEY}`;
442 };
443
444 const logoUrl = getLogoUrl(provider.id);
445

Callers 1

IntegrationsManagerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected