decord/source/modules/user_profile/native/ApplicationIconAndName.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

46 lines
1.6 KiB
TypeScript

// Module ID: 12721
// Function ID: 12722
// Name: ApplicationIconAndName
// Dependencies: [21, 4606, 576, 1178, 4602, 2]
// Exports: default
// Module 12721 (ApplicationIconAndName)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1178 */;
import Text_Text from "Text/Text" /* 4602 */;
import jsxProd from "jsxProd" /* 21 */;
import createStyles from "createStyles" /* 4606 */;
import size from "module_2" /* 2 */;
({ jsx: c3, Fragment: closure_4, jsxs: hasOwnProperty } = jsxProd);
let closure_6 = createStyles.createStyles((width) => {
const obj = { gameIcon: null };
const size = { width, height: width, marginTop: -1, marginRight: 4, borderRadius: nativeDefault.radii.xs };
obj.gameIcon = size;
return obj;
});
const result = size.fileFinishedImporting("modules/user_profile/native/ApplicationIconAndName.tsx");
export default function ApplicationIconAndName(textVariant) {
({ application, iconSize, useComma } = textVariant);
if (useComma === undefined) {
useComma = false;
}
const obj = { style: closure_6(iconSize).gameIcon, resizeMode: "contain", source: null, disableColor: true };
let str = application.getIconURL(iconSize);
if (str == null) {
str = "";
}
obj.source = { uri: str };
const items = [React3(native.Icon, obj, application.id), ];
const obj2 = { variant: textVariant.textVariant, children: null };
let str2 = "";
if (useComma) {
str2 = ", ";
}
const obj3 = { children: null };
obj2.children = "" + application.name + str2;
items[1] = React3(Text_Text.Text, obj2);
obj3.children = items;
return hasOwnProperty(React4, obj3);
};