decord/source/modules/user_profile/native/ApplicationIconAndName.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

46 lines
1.5 KiB
TypeScript

// Module ID: 12632
// Function ID: 12633
// Name: ApplicationIconAndName
// Dependencies: [21, 4560, 576, 1178, 4556, 2]
// Exports: default
// Module 12632 (ApplicationIconAndName)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 576 */;
import Button from "Button" /* 1178 */;
import Text from "Text" /* 4556 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4560 */;
({ 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: ThemesDefault.radii.xs };
obj[0] = obj;
return obj;
});
const result = set.fileFinishedImporting("modules/user_profile/native/ApplicationIconAndName.tsx");
export default function ApplicationIconAndName(textVariant) {
({ application, iconSize, useComma } = textVariant);
if (useComma === undefined) {
useComma = false;
}
let obj = { style: callback(iconSize).gameIcon, resizeMode: "contain", source: null, disableColor: true };
let str = application.getIconURL(iconSize);
if (str == null) {
str = "";
}
obj[2] = { uri: str };
const items = [closure_3(Button.Icon, obj, application.id), ];
obj = { variant: textVariant.textVariant, children: null };
let str2 = "";
if (useComma) {
str2 = ", ";
}
obj = { children: null };
obj[1] = "" + application.name + str2;
items[1] = closure_3(Text.Text, obj);
obj[0] = items;
return closure_5(closure_4, obj);
};