55 lines
3.7 KiB
TypeScript
55 lines
3.7 KiB
TypeScript
/* Metro module 8833; source: modules/activity_status/native/ApplicationStreamActivityStatus.tsx; dependencies: [31, 33, 1244, 8834, 8835, 8837, 2] */
|
|
import * as FileImportTrackerModule from '../../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 2 */
|
|
import * as ReactModule from '../../../by-id/module-00031-React.js'; /* Metro dependency 31 */
|
|
import * as JsxRuntimeModule from '../../../by-id/module-00033-JsxRuntime.js'; /* Metro dependency 33 */
|
|
|
|
function _fun68996(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#68996, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9018:6, offset: 0x01c64233, size: 157 bytes, params: 8, frame: 18
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
ReactModule;
|
|
(FileImportTrackerModule).fileFinishedImporting('modules/activity_status/native/ApplicationStreamActivityStatus.tsx');
|
|
exports.default = ApplicationStreamActivityStatus;
|
|
function ApplicationStreamActivityStatus({game, iconStyle, textStyle, maxFontSizeMultiplier, hideIcon, hideText}) { // fn#68997, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:9018:254, offset: 0x01c642d0, size: 394 bytes, params: 2, frame: 26
|
|
var r7;
|
|
var r9;
|
|
var value4;
|
|
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
|
|
var jsxRuntimeEnv0_4Binding;
|
|
var items2;
|
|
hideIcon = !(hideIcon === undefined) && hideIcon;
|
|
hideText = !(hideText === undefined) && hideText;
|
|
if (hideIcon) {
|
|
if (hideText) {
|
|
return null;
|
|
}
|
|
value4 = null;
|
|
r7 = (value4 == game ? undefined : game.name) === '' ? value4 : value4 == game ? undefined : game.name;
|
|
r9 = value4 != r7 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0wJXSh'],
|
|
{name: r7}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eXan7B);
|
|
jsxRuntimeEnv0_4Binding = jsxRuntimeEnv0_4;
|
|
r7 = !hideIcon && ((Component) => <Component icon={(require(8835) /* metro dependency 8835: TvIcon */).TvIcon} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */);
|
|
items2 = [r7];
|
|
items2[1] = !hideText && ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{r9}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */);
|
|
return (
|
|
<>
|
|
{items2}
|
|
</>
|
|
);
|
|
}
|
|
value4 = null;
|
|
r7 = (value4 == game ? undefined : game.name) === '' ? value4 : value4 == game ? undefined : game.name;
|
|
return (
|
|
<>
|
|
{!hideIcon && ((Component) => <Component icon={(require(8835) /* metro dependency 8835: TvIcon */).TvIcon} style={iconStyle} />)(importDefault(8834) /* metro dependency 8834: ActivityStatusIcon */)}
|
|
{!hideText && ((Component) => <Component style={textStyle} maxFontSizeMultiplier={maxFontSizeMultiplier}>{value4 != r7 ? intl.format((require(1244) /* metro dependency 1244: indexNative */).t['0wJXSh'],
|
|
{name: r7}) : intl.string((require(1244) /* metro dependency 1244: indexNative */).t.eXan7B)}</Component>)(importDefault(8837) /* metro dependency 8837: ActivityStatusText */)}
|
|
</>
|
|
);
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun68996, 8833, [31, 33, 1244, 8834, 8835, 8837,
|
|
2]) /* metro module 8833, dependencies: [31, 33, 1244, 8834, 8835, 8837, 2] */;
|