43 lines
1.6 KiB
TypeScript
43 lines
1.6 KiB
TypeScript
// Module ID: 12083
|
|
// Function ID: 12084
|
|
// Name: GuildPowerupsImage
|
|
// Dependencies: [4372, 21, 4380, 589, 501, 8451, 5374, 2]
|
|
// Exports: default
|
|
|
|
// Module 12083 (GuildPowerupsImage)
|
|
import initialize from "initialize" /* 589 */;
|
|
import preloadDefault from "preload" /* 5374 */;
|
|
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 8451 */;
|
|
import closure_3 from "maybeApplyNoTextColorForLightCustomTheme" /* 4372 */;
|
|
import { jsx } from "jsxProd" /* 21 */;
|
|
import createCacheKey from "createCacheKey" /* 4380 */;
|
|
|
|
require = arg1;
|
|
let closure_5 = createCacheKey.createStyles({ image: { width: "75%", height: "100%", alignSelf: "center", resizeMode: "contain" } });
|
|
const result = require("set").fileFinishedImporting("modules/premium/powerups/native/GuildPowerupsImage.tsx");
|
|
|
|
export default function GuildPowerupsImage(style) {
|
|
({ imageUrl, isAnimated } = style);
|
|
if (isAnimated === undefined) {
|
|
isAnimated = true;
|
|
}
|
|
style = style.style;
|
|
const tmp = callback();
|
|
let obj = initialize;
|
|
const items = [closure_3];
|
|
const stateFromStores = obj.useStateFromStores(items, () => useReducedMotion.useReducedMotion);
|
|
if (obj2.isAndroid()) {
|
|
if (isAnimated) {
|
|
if (!stateFromStores) {
|
|
obj = { style: null, url: null };
|
|
const items1 = [tmp.image, style];
|
|
obj[0] = items1;
|
|
obj[1] = imageUrl;
|
|
let tmp6 = jsx(__INTERNAL_VIEW_CONFIGDefault, { style: null, url: null });
|
|
}
|
|
return tmp6;
|
|
}
|
|
}
|
|
const items2 = [tmp.image, style];
|
|
tmp6 = jsx(preloadDefault, { style: items2, source: { uri: imageUrl } });
|
|
};
|