decord/source/modules/games/native/GameActivityIcon.tsx
2026-08-25 06:04:03 +00:00

66 lines
2.2 KiB
TypeScript

// Module ID: 9399
// Function ID: 9400
// Dependencies: [19, 17, 21, 4380, 712, 4108, 8097, 1363, 5374, 1435, 2]
// Module 9399
import ThemesDefault from "Themes" /* 712 */;
import importAllResult from "noop" /* 19 */;
import { View } from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4380 */;
const require = arg1;
let c3 = importAllResult;
let obj = { icon: null };
obj = { borderRadius: ThemesDefault.radii.xs };
obj[0] = obj;
let closure_6 = createCacheKey.createStyles(obj);
const memoResult = importAllResult.memo(function GameActivityIcon(style) {
({ game, size, onShown } = style);
style = style.style;
let iconURL;
const tmp = callback();
let obj = onShown(4108);
iconURL = game.getIconURL(size);
obj = { width: size, height: size };
const items = [iconURL, onShown];
const effect = importAllResult.useEffect(() => {
if (null != iconURL) {
if (onShown != null) {
tmp();
}
}
}, items);
if (null == iconURL) {
if ("none" === style.fallback) {
return null;
} else {
obj = { size: "custom", style: null, color: null };
const items1 = [tmp.icon, obj];
obj[1] = items1;
let tmp2Result = tmp2(1363);
const colors = iconURL(712).colors;
obj[2] = tmp2Result.isThemeDark(obj.useThemeContext().theme) ? colors.WHITE : colors.BLACK;
jsx(tmp2(8097).UnknownGameIcon, { size: "custom", style: null, color: null });
const isThemeDarkResult = tmp2Result.isThemeDark(obj.useThemeContext().theme);
}
} else {
obj1 = { source: null, style: null };
tmp2Result = tmp2(1435);
obj1[0] = tmp2Result.makeSource(iconURL);
const items2 = [tmp.icon, obj];
obj1[1] = items2;
const tmp9 = jsx(iconURL(5374), { source: null, style: null });
let tmp6Result = tmp9;
if (null != style) {
const obj2 = { style: null, children: null };
obj2[0] = style;
obj2[1] = tmp9;
tmp6Result = <View style={null}>{null}</View>;
}
return tmp6Result;
}
});
const result = require("set").fileFinishedImporting("modules/games/native/GameActivityIcon.tsx");
export default memoResult;