decord/source/modules/activity_status/native/ApplicationStreamActivityStatus.tsx

75 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 8999
2026-07-27 11:26:19 +00:00
// Function ID: 70885
2026-07-20 16:05:17 +00:00
// Name: ApplicationStreamActivityStatus
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 33, 1212, 9000, 9001, 9003, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 8999 (ApplicationStreamActivityStatus)
2026-07-23 10:11:24 +00:00
import "result";
import jsxProd from "jsxProd";
let closure_3;
let closure_4;
let closure_5;
const require = arg1;
({ jsx: closure_3, Fragment: closure_4, jsxs: closure_5 } = jsxProd);
const result = require("getSystemLocale").fileFinishedImporting("modules/activity_status/native/ApplicationStreamActivityStatus.tsx");
2026-07-20 16:05:17 +00:00
export default function ApplicationStreamActivityStatus(hideText) {
let game;
let hideIcon;
let iconStyle;
let maxFontSizeMultiplier;
let textStyle;
({ game, hideIcon } = hideText);
({ iconStyle, textStyle, maxFontSizeMultiplier } = hideText);
if (hideIcon === undefined) {
hideIcon = false;
}
let flag = hideText.hideText;
if (flag === undefined) {
flag = false;
}
if (hideIcon) {
if (flag) {
return null;
}
}
let name;
if (null != game) {
name = game.name;
}
let tmp2 = null;
if ("" !== name) {
let name1;
if (null != game) {
name1 = game.name;
}
tmp2 = name1;
}
if (null != tmp2) {
2026-07-23 10:11:24 +00:00
const intl2 = require(1212) /* getSystemLocale */.intl;
2026-07-20 16:05:17 +00:00
let obj = { name: tmp2 };
2026-07-23 10:11:24 +00:00
let formatResult = intl2.format(require(1212) /* getSystemLocale */.t["0wJXSh"], obj);
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
const intl = require(1212) /* getSystemLocale */.intl;
formatResult = intl.string(require(1212) /* getSystemLocale */.t.eXan7B);
2026-07-20 16:05:17 +00:00
}
obj = {};
let tmp11 = !hideIcon;
if (tmp11) {
2026-07-25 08:10:48 +00:00
obj = { icon: require(9001) /* TvIcon */.TvIcon, style: iconStyle };
tmp11 = callback(importDefault(9000), obj);
const tmp15 = importDefault(9000);
2026-07-20 16:05:17 +00:00
}
const items = [tmp11, ];
let tmp17 = !flag;
if (tmp17) {
const obj1 = { style: textStyle, maxFontSizeMultiplier, children: formatResult };
2026-07-25 08:10:48 +00:00
tmp17 = callback(importDefault(9003), obj1);
2026-07-20 16:05:17 +00:00
}
items[1] = tmp17;
obj.children = items;
return closure_5(closure_4, obj);
};