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

47 lines
1.6 KiB
TypeScript
Raw Normal View History

// Module ID: 12721
// Function ID: 12722
2026-07-20 16:05:17 +00:00
// Name: ApplicationIconAndName
// Dependencies: [21, 4606, 576, 1178, 4602, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12721 (ApplicationIconAndName)
import nativeDefault from "native" /* 576 */;
import native from "native" /* 1178 */;
import Text_Text from "Text/Text" /* 4602 */;
2026-08-24 06:08:38 +00:00
import jsxProd from "jsxProd" /* 21 */;
import createStyles from "createStyles" /* 4606 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
({ 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;
2026-07-20 16:05:17 +00:00
return obj;
});
const result = size.fileFinishedImporting("modules/user_profile/native/ApplicationIconAndName.tsx");
2026-07-20 16:05:17 +00:00
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 };
2026-07-29 08:29:29 +00:00
let str = application.getIconURL(iconSize);
if (str == null) {
str = "";
2026-07-20 16:05:17 +00:00
}
obj.source = { uri: str };
const items = [React3(native.Icon, obj, application.id), ];
const obj2 = { variant: textVariant.textVariant, children: null };
2026-07-20 16:05:17 +00:00
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);
2026-07-20 16:05:17 +00:00
};