decord/source/modules/user_profile/native/ApplicationIconAndName.tsx

49 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-07-31 08:44:05 +00:00
// Module ID: 11735
// Function ID: 11736
2026-07-20 16:05:17 +00:00
// Name: ApplicationIconAndName
2026-07-31 08:44:05 +00:00
// Dependencies: [21, 4193, 712, 1297, 4189, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-31 08:44:05 +00:00
// Module 11735 (ApplicationIconAndName)
2026-07-23 10:11:24 +00:00
import jsxProd from "jsxProd";
2026-07-29 08:29:29 +00:00
import createCacheKey from "createCacheKey";
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
let c3;
let c4;
let c5;
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles((width) => {
let obj = { gameIcon: null };
obj = { width, height: width, marginTop: -1, marginRight: 4, borderRadius: importDefault(712).radii.xs };
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
});
2026-07-29 08:29:29 +00:00
const result = require("Themes").fileFinishedImporting("modules/user_profile/native/ApplicationIconAndName.tsx");
2026-07-20 16:05:17 +00:00
export default function ApplicationIconAndName(textVariant) {
let application;
let iconSize;
let useComma;
({ application, iconSize, useComma } = textVariant);
if (useComma === undefined) {
useComma = false;
}
2026-07-29 08:29:29 +00:00
let obj = { style: callback(iconSize).gameIcon, resizeMode: "contain", source: null, disableColor: true };
let str = application.getIconURL(iconSize);
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
obj[2] = { uri: str };
const items = [closure_3(require(1297) /* Button */.Icon, obj, application.id), ];
obj = { variant: textVariant.textVariant, children: null };
2026-07-20 16:05:17 +00:00
let str2 = "";
if (useComma) {
str2 = ", ";
}
2026-07-29 08:29:29 +00:00
obj = { children: null };
obj[1] = "" + application.name + str2;
2026-07-31 08:44:05 +00:00
items[1] = closure_3(require(4189) /* Text */.Text, obj);
2026-07-29 08:29:29 +00:00
obj[0] = items;
2026-07-20 16:05:17 +00:00
return closure_5(closure_4, obj);
};