(id: PlatformType, installations: InstallationStatus)
| 115 | } |
| 116 | |
| 117 | function getStatus(id: PlatformType, installations: InstallationStatus): PlatformStatus { |
| 118 | const def = PLATFORM_DEFINITIONS.find(p => p.id === id); |
| 119 | if (!def?.enabled) return 'coming_soon'; |
| 120 | return installations[id as keyof InstallationStatus]?.installed ? 'installed' : 'not_installed'; |
| 121 | } |
| 122 | |
| 123 | export function buildPlatforms( |
| 124 | installationStatuses: readonly PlatformIntegrationSetupStatus[], |
no outgoing calls
no test coverage detected