68 lines
2.1 KiB
TypeScript
68 lines
2.1 KiB
TypeScript
// Module ID: 9301
|
|
// Function ID: 9302
|
|
// Dependencies: [19, 17, 21, 4342, 712, 4072, 7992, 1363, 5308, 1435, 2]
|
|
|
|
// Module 9301
|
|
import importAllResult from "noop";
|
|
import { View } from "get ActivityIndicator";
|
|
import { jsx } from "jsxProd";
|
|
import createCacheKey from "createCacheKey";
|
|
|
|
const require = arg1;
|
|
let c3 = importAllResult;
|
|
let obj = { icon: null };
|
|
obj = { borderRadius: require("Themes").radii.xs };
|
|
obj[0] = obj;
|
|
let closure_6 = createCacheKey.createStyles(obj);
|
|
const memoResult = importAllResult.memo(function GameActivityIcon(style) {
|
|
let game;
|
|
let onShown;
|
|
let size;
|
|
({ game, size, onShown } = style);
|
|
style = style.style;
|
|
let iconURL;
|
|
const tmp = callback();
|
|
let obj = onShown(4072);
|
|
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(7992).UnknownGameIcon, { size: "custom", style: null, color: null });
|
|
const isThemeDarkResult = tmp2Result.isThemeDark(obj.useThemeContext().theme);
|
|
}
|
|
} else {
|
|
const 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(5308), { 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("jsxProd").fileFinishedImporting("modules/games/native/GameActivityIcon.tsx");
|
|
|
|
export default memoResult;
|