|
|
|
|
@ -15,4 +15,8 @@ export const getProfileLogo = ({ |
|
|
|
|
id, |
|
|
|
|
profileType, |
|
|
|
|
sportType, |
|
|
|
|
}: GetLogoArgs) => `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? 'photo.png' : 'logo.png'}` |
|
|
|
|
}: GetLogoArgs) => { |
|
|
|
|
const extension = ProfileTypes.SUPERTOURNAMENTS === profileType ? 'jpg' : 'png' |
|
|
|
|
|
|
|
|
|
return `${URL_AWS}/media/${PROFILE_NAMES[profileType]}/${sportType}/${id}/${profileType === ProfileTypes.PLAYERS ? `photo.${extension}` : `logo.${extension}`}` |
|
|
|
|
} |
|
|
|
|
|