{"size": 909, "ext": "js", "max_stars_repo_path": "app/shared/logo/Logo.js", "max_stars_repo_name": "zilahir/varaamo", "max_stars_repo_stars_event_min_datetime": "2017-05-29T17:46:21.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-14T09:37:41.000Z", "max_issues_repo_path": "app/shared/logo/Logo.js", "max_issues_repo_name": "zilahir/varaamo", "max_issues_repo_issues_event_min_datetime": "2016-12-27T09:47:03.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-08T06:39:30.000Z", "max_forks_repo_path": "app/shared/logo/Logo.js", "max_forks_repo_name": "zilahir/varaamo", "max_forks_repo_forks_event_min_datetime": "2017-02-20T07:28:34.000Z", "max_forks_repo_forks_event_max_datetime": "2020-11-12T06:58:22.000Z"}
{"max_stars_count": 15, "max_issues_count": 554, "max_forks_count": 24, "avg_line_length": 19.7608695652, "max_line_length": 73, "alphanum_fraction": 0.5588558856}
import PropTypes from 'prop-types';
import React from 'react';

import injectT from '../../i18n/injectT';
import { getCurrentCustomization } from '../../utils/customizationUtils';
import helsinkiLogoSrc from './helsinki-logo-white.png';
import espooLogoSrc from './espoo-blue-logo.png';
import vantaaLogoSrc from './vantaa-logo.png';

function Logo({ t }) {
  switch (getCurrentCustomization()) {
    case 'ESPOO': {
      return (
        <img
          alt={t('Logo.espooAlt')}
          src={espooLogoSrc}
        />
      );
    }

    case 'VANTAA': {
      return (
        <img
          alt={t('Logo.vantaaAlt')}
          src={vantaaLogoSrc}
        />
      );
    }

    default: {
      return (
        <img
          alt={t('Logo.helsinkiAlt')}
          src={helsinkiLogoSrc}
        />
      );
    }
  }
}

Logo.propTypes = {
  t: PropTypes.func.isRequired,
};

export default injectT(Logo);
