2026-09-28 16:18:32 +00:00
|
|
|
// Module ID: 9204
|
|
|
|
|
// Function ID: 9205
|
2026-09-18 19:45:33 +00:00
|
|
|
// Name: GameActivityIcon
|
2026-09-28 16:18:32 +00:00
|
|
|
// Dependencies: [19, 17, 21, 4836, 576, 4540, 8021, 4685, 5899, 1397, 2]
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-09-28 16:18:32 +00:00
|
|
|
// Module 9204 (GameActivityIcon)
|
2026-10-01 14:13:23 +00:00
|
|
|
import react_native from "react-native" /* 17 */;
|
|
|
|
|
import Fragment from "Fragment" /* 21 */;
|
2026-09-26 17:57:22 +00:00
|
|
|
import nativeDefault from "native" /* 576 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import AvatarUtils from "AvatarUtils" /* 1397 */;
|
|
|
|
|
import native from "native" /* 4540 */;
|
|
|
|
|
import shared from "shared" /* 4685 */;
|
2026-09-28 16:18:32 +00:00
|
|
|
import FastImageDefault from "FastImage" /* 5899 */;
|
2026-10-01 14:13:23 +00:00
|
|
|
import react from "react" /* 19 */;
|
|
|
|
|
import createStyles from "createStyles" /* 4836 */;
|
|
|
|
|
import size from "module_2" /* 2 */;
|
2026-09-18 19:45:33 +00:00
|
|
|
|
2026-10-01 14:13:23 +00:00
|
|
|
let obj2;
|
|
|
|
|
const View = react_native.View;
|
|
|
|
|
const jsx = Fragment.jsx;
|
|
|
|
|
let obj = { icon: obj2 };
|
|
|
|
|
obj2 = { borderRadius: nativeDefault.radii.xs };
|
2026-09-18 19:45:33 +00:00
|
|
|
let closure_6 = createStyles.createStyles(obj);
|
2026-10-01 14:13:23 +00:00
|
|
|
const memoResult = react.memo(function GameActivityIcon(style) {
|
|
|
|
|
let colors;
|
|
|
|
|
let game;
|
|
|
|
|
let isThemeDarkResult;
|
|
|
|
|
let items1;
|
|
|
|
|
let onShown;
|
|
|
|
|
let tmp10;
|
|
|
|
|
let tmp13Result;
|
2026-09-18 19:45:33 +00:00
|
|
|
({ game, size, onShown } = style);
|
|
|
|
|
style = style.style;
|
2026-10-01 14:13:23 +00:00
|
|
|
const fallback = style.fallback;
|
2026-09-18 19:45:33 +00:00
|
|
|
const tmp = closure_6();
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj = native;
|
|
|
|
|
const theme = obj.useThemeContext().theme;
|
2026-09-18 19:45:33 +00:00
|
|
|
const iconURL = game.getIconURL(size);
|
|
|
|
|
const size1 = { width: size, height: size };
|
|
|
|
|
const items = [iconURL, onShown];
|
2026-10-01 14:13:23 +00:00
|
|
|
const effect = react.useEffect(() => {
|
2026-09-18 19:45:33 +00:00
|
|
|
if (null != iconURL) {
|
|
|
|
|
if (onShown != null) {
|
|
|
|
|
tmp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}, items);
|
|
|
|
|
if (null == iconURL) {
|
2026-10-01 14:13:23 +00:00
|
|
|
if ("none" === fallback) {
|
2026-09-18 19:45:33 +00:00
|
|
|
return null;
|
|
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
const obj2 = { size: "custom", style: items1, color: isThemeDarkResult ? colors.WHITE : colors.BLACK };
|
|
|
|
|
items1 = [tmp.icon, size1];
|
|
|
|
|
const UnknownGameIcon = tmp2(8021).UnknownGameIcon;
|
|
|
|
|
const tmp2Result = shared;
|
|
|
|
|
isThemeDarkResult = tmp2Result.isThemeDark(theme);
|
|
|
|
|
colors = nativeDefault.colors;
|
|
|
|
|
tmp13Result = tmp13(UnknownGameIcon, obj2);
|
|
|
|
|
tmp10 = tmp13;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
2026-10-01 14:13:23 +00:00
|
|
|
FastImageDefault;
|
2026-09-18 19:45:33 +00:00
|
|
|
const items2 = [tmp.icon, size1];
|
2026-10-01 14:13:23 +00:00
|
|
|
tmp13Result = <tmp8 source={AvatarUtils.makeSource(iconURL)} style={items2} />;
|
|
|
|
|
tmp10 = jsx;
|
|
|
|
|
const tmp2Result2 = AvatarUtils;
|
2026-09-18 19:45:33 +00:00
|
|
|
}
|
2026-10-01 14:13:23 +00:00
|
|
|
let tmp10Result = tmp13Result;
|
|
|
|
|
if (null != style) {
|
|
|
|
|
const obj4 = { style, children: tmp13Result };
|
|
|
|
|
tmp10Result = tmp10(View, obj4);
|
|
|
|
|
}
|
|
|
|
|
return tmp10Result;
|
2026-09-26 17:57:22 +00:00
|
|
|
});
|
2026-10-01 14:13:23 +00:00
|
|
|
const result = size.fileFinishedImporting("modules/games/native/GameActivityIcon.tsx");
|
|
|
|
|
|
|
|
|
|
export default memoResult;
|