42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
// Metro module 11612 (f11613).
|
|
import AccessibilityStore from "../../../a11y/AccessibilityStore";
|
|
import { useStateFromStores } from "../../../../_bundle/Module589";
|
|
export default function useGetGuildPowerupBannerImage(a0, a1, a2) {
|
|
let animatedImageUrl;
|
|
const stateFromStores = useStateFromStores([AccessibilityStore], () => AccessibilityStore.useReducedMotion);
|
|
const r1 = a0 != null;
|
|
let r14 = void 0;
|
|
if (r1) {
|
|
L8: {
|
|
if (!stateFromStores && (a1 !== false && !a2)) {
|
|
animatedImageUrl = a0.animatedImageUrl;
|
|
if (animatedImageUrl != null) {
|
|
break L8;
|
|
}
|
|
animatedImageUrl = a0.staticImageUrl;
|
|
} else {
|
|
animatedImageUrl = a0.staticImageUrl;
|
|
}
|
|
}
|
|
r14 = animatedImageUrl;
|
|
}
|
|
return r14;
|
|
};
|
|
export function getGuildPowerupBannerImage(a0, a1, a2, a3) {
|
|
let animatedImageUrl;
|
|
if (a0 != null) {
|
|
L9: {
|
|
if (!a1 && (a2 !== false && !a3)) {
|
|
animatedImageUrl = a0.animatedImageUrl;
|
|
if (animatedImageUrl != null) {
|
|
break L9;
|
|
}
|
|
animatedImageUrl = a0.staticImageUrl;
|
|
} else {
|
|
animatedImageUrl = a0.staticImageUrl;
|
|
}
|
|
}
|
|
return animatedImageUrl;
|
|
}
|
|
}
|