getPlatformName.tsx 269 B

12345678
  1. import platforms from 'sentry/data/platforms';
  2. export default function getPlatformName(platform: string | null) {
  3. const platformData: {name: string} | undefined = platforms.find(
  4. ({id}) => platform === id
  5. );
  6. return platformData ? platformData.name : null;
  7. }