80 lines
2.1 KiB
TypeScript
80 lines
2.1 KiB
TypeScript
// Module ID: 9076
|
|
// Function ID: 9077
|
|
// Name: ApplicationStreamActivityStatus
|
|
// Dependencies: [19, 21, 1236, 9077, 9078, 9080, 2]
|
|
// Exports: default
|
|
|
|
// Module 9076 (ApplicationStreamActivityStatus)
|
|
import "noop";
|
|
import jsxProd from "jsxProd";
|
|
|
|
let c3;
|
|
let c4;
|
|
let c5;
|
|
const require = arg1;
|
|
({ jsx: c3, Fragment: c4, jsxs: c5 } = jsxProd);
|
|
const result = require("getSystemLocale").fileFinishedImporting("modules/activity_status/native/ApplicationStreamActivityStatus.tsx");
|
|
|
|
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 (game != null) {
|
|
name = game.name;
|
|
}
|
|
let tmp2 = null;
|
|
if ("" !== name) {
|
|
let name1;
|
|
if (game != null) {
|
|
name1 = game.name;
|
|
}
|
|
tmp2 = name1;
|
|
}
|
|
if (null != tmp2) {
|
|
const intl2 = require(1236) /* getSystemLocale */.intl;
|
|
let obj = { name: null };
|
|
obj[0] = tmp2;
|
|
let formatResult = intl2.format(require(1236) /* getSystemLocale */.t["0wJXSh"], obj);
|
|
let tmp7 = require;
|
|
} else {
|
|
const intl = require(1236) /* getSystemLocale */.intl;
|
|
formatResult = intl.string(require(1236) /* getSystemLocale */.t.eXan7B);
|
|
tmp7 = require;
|
|
}
|
|
let tmp12 = !hideIcon;
|
|
if (!hideIcon) {
|
|
obj = { icon: null, style: null };
|
|
obj[0] = tmp7(9078).TvIcon;
|
|
obj[1] = iconStyle;
|
|
tmp12 = callback(importDefault(9077), obj);
|
|
const tmp15 = importDefault(9077);
|
|
}
|
|
const children = [tmp12, ];
|
|
let tmp16 = !flag;
|
|
if (!flag) {
|
|
obj = { style: null, maxFontSizeMultiplier: null, children: null };
|
|
obj[0] = textStyle;
|
|
obj[1] = maxFontSizeMultiplier;
|
|
obj[2] = formatResult;
|
|
tmp16 = callback(importDefault(9080), obj);
|
|
}
|
|
children[1] = tmp16;
|
|
return closure_5(closure_4, { children });
|
|
};
|