Files
discord-decomp/sources/modules/channel/native/getChannelSubtitleData.tsx
T
2026-07-27 16:20:00 +03:00

35 lines
1.6 KiB
TypeScript

/* Metro module 14694; source: modules/channel/native/getChannelSubtitleData.tsx; dependencies: [1244, 2] */
function _fun110867(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110867, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:6, offset: 0x0238a48a, size: 96 bytes, params: 8, frame: 18
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/channel/native/getChannelSubtitleData.tsx');
exports.getChannelSubtitleData = getChannelSubtitleData;
}
function getChannelSubtitleData(a0) { // fn#110868, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14891:200, offset: 0x0238a4ea, size: 190 bytes, params: 2, frame: 17
var object2;
var intl;
if (a0 == null) {
return null;
}
const type = a0.type;
if (type === 'embedded-activities') {
return {subtitle: a0.name, type: a0.type};
}
if (type === 'event') {
return {subtitle: a0.name, type: a0.type};
}
if (type === 'go-live') {
object2 = {};
intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
object2.subtitle = intl.string((require(1244) /* metro dependency 1244: indexNative */).t.Pa817q);
object2.type = a0.type;
return object2;
}
if (type === 'voice') {
return {subtitle: a0.text, type: a0.type};
}
}