74 lines
2 KiB
TypeScript
74 lines
2 KiB
TypeScript
// Module ID: 9068
|
|
// Function ID: 71185
|
|
// Name: ApplicationStreamActivityStatus
|
|
// Dependencies: [31, 33, 1212, 9069, 9070, 9072, 2]
|
|
// Exports: default
|
|
|
|
// Module 9068 (ApplicationStreamActivityStatus)
|
|
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");
|
|
|
|
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) {
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
|
let obj = { name: tmp2 };
|
|
let formatResult = intl2.format(require(1212) /* getSystemLocale */.t["0wJXSh"], obj);
|
|
} else {
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
formatResult = intl.string(require(1212) /* getSystemLocale */.t.eXan7B);
|
|
}
|
|
obj = {};
|
|
let tmp11 = !hideIcon;
|
|
if (tmp11) {
|
|
obj = { icon: require(9070) /* TvIcon */.TvIcon, style: iconStyle };
|
|
tmp11 = callback(importDefault(9069), obj);
|
|
const tmp15 = importDefault(9069);
|
|
}
|
|
const items = [tmp11, ];
|
|
let tmp17 = !flag;
|
|
if (tmp17) {
|
|
const obj1 = { style: textStyle, maxFontSizeMultiplier, children: formatResult };
|
|
tmp17 = callback(importDefault(9072), obj1);
|
|
}
|
|
items[1] = tmp17;
|
|
obj.children = items;
|
|
return closure_5(closure_4, obj);
|
|
};
|