You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
380 B
18 lines
380 B
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'}`
|
|
|