import {
  PROFILE_NAMES,
  ProfileTypes,

  URL_AWS,
} from 'config'

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

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