45 lines
1.4 KiB
TypeScript
45 lines
1.4 KiB
TypeScript
// Module ID: 11765
|
|
// Function ID: 11766
|
|
// Name: useGetGuildPowerupBannerImage
|
|
// Dependencies: [4247, 589, 2]
|
|
// Exports: default, getGuildPowerupBannerImage
|
|
|
|
// Module 11765 (useGetGuildPowerupBannerImage)
|
|
import maybeApplyNoTextColorForLightCustomTheme from "maybeApplyNoTextColorForLightCustomTheme";
|
|
|
|
const require = arg1;
|
|
const result = require("set").fileFinishedImporting("modules/premium/powerups/hooks/useGetGuildPowerupBannerImage.tsx");
|
|
|
|
export default function useGetGuildPowerupBannerImage(animatedImageUrl) {
|
|
require(589) /* initialize */;
|
|
[][0] = maybeApplyNoTextColorForLightCustomTheme;
|
|
if (null != animatedImageUrl) {
|
|
if (!tmp2) {
|
|
if (false !== arg1) {
|
|
if (!arg2) {
|
|
let staticImageUrl = animatedImageUrl.animatedImageUrl;
|
|
if (staticImageUrl == null) {
|
|
staticImageUrl = animatedImageUrl.staticImageUrl;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
staticImageUrl = animatedImageUrl.staticImageUrl;
|
|
}
|
|
};
|
|
export const getGuildPowerupBannerImage = function getGuildPowerupBannerImage(found, outer1_4, arg2) {
|
|
if (null != found) {
|
|
if (!outer1_4) {
|
|
if (false !== arg2) {
|
|
if (!arg3) {
|
|
let staticImageUrl = found.animatedImageUrl;
|
|
if (staticImageUrl == null) {
|
|
staticImageUrl = found.staticImageUrl;
|
|
}
|
|
}
|
|
return staticImageUrl;
|
|
}
|
|
}
|
|
staticImageUrl = found.staticImageUrl;
|
|
}
|
|
};
|