import {
  PROFILE_NAMES,
  ProfileTypes,
  SportTypes,
  URL_AWS,
} from 'config'

type GetLogoArgs = {
  id: number,
  profileType: ProfileTypes,
  sportType: SportTypes,
}

export const getProfileLogo = ({
  id,
  profileType,
  sportType,
}: GetLogoArgs) => `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? 'photo.png' : 'logo.jpg'}`
