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

47 lines
1.5 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 11848
// Function ID: 11849
2026-07-20 16:05:17 +00:00
// Name: ApplicationIconAndName
2026-08-24 06:08:38 +00:00
// Dependencies: [21, 4668, 712, 1297, 4739, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 11848 (ApplicationIconAndName)
import set from "set" /* 2 */;
import ThemesDefault from "Themes" /* 712 */;
import Button from "Button" /* 1297 */;
import Text from "Text" /* 4739 */;
import jsxProd from "jsxProd" /* 21 */;
import createCacheKey from "createCacheKey" /* 4668 */;
2026-07-23 10:11:24 +00:00
2026-07-29 08:29:29 +00:00
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
let closure_6 = createCacheKey.createStyles((width) => {
let obj = { gameIcon: null };
2026-08-24 06:08:38 +00:00
obj = { width, height: width, marginTop: -1, marginRight: 4, borderRadius: ThemesDefault.radii.xs };
2026-07-29 08:29:29 +00:00
obj[0] = obj;
2026-07-20 16:05:17 +00:00
return obj;
});
2026-08-24 06:08:38 +00:00
const result = set.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;
}
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 };
2026-08-24 06:08:38 +00:00
const items = [closure_3(Button.Icon, obj, application.id), ];
2026-07-29 08:29:29 +00:00
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-08-24 06:08:38 +00:00
items[1] = closure_3(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);
};