MCPcopy Create free account
hub / github.com/dailydotdev/apps / getPlatformConfig

Function getPlatformConfig

packages/shared/src/lib/platforms.tsx:377–382  ·  view source on GitHub ↗
(
  platformId: string,
  platforms: T,
)

Source from the content-addressed store, hash-verified

375 * Get platform config by ID
376 */
377export function getPlatformConfig<T extends Record<string, PlatformConfig>>(
378 platformId: string,
379 platforms: T,
380): PlatformConfig | null {
381 return platforms[platformId] || null;
382}
383
384/**
385 * Get platform icon element

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected