import { ProfileTypes } from 'config'

const FALLBACK_LOGOS = {
  [ProfileTypes.PLAYERS]: '/images/player-fallback.png',
  [ProfileTypes.TEAMS]: '/images/team-fallback.png',
  [ProfileTypes.TOURNAMENTS]: '/images/tournament-fallback.png',
  [ProfileTypes.SUPERTOURNAMENTS]: '/images/tournament-fallback.png',
}

export const getProfileFallbackLogo = (profileType: ProfileTypes) => {
  if (profileType === ProfileTypes.MATCHES) return ''

  return FALLBACK_LOGOS[profileType]
}
