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

43 lines
3.0 KiB
TypeScript

/* Metro module 14411; source: modules/home_drawer/native/HomeDrawerDirectMessagesRow.tsx; dependencies: [31, 12600, 33, 566, 4573, 1244, 14407, 4013, 4010, 2] */
function _fun109085(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#109085, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14608:6, offset: 0x0233caa9, size: 165 bytes, params: 8, frame: 19
const env0_0 = require;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
importAll(31) /* metro dependency 31 */;
const privateChannelReadStateStore = importDefault(12600) /* metro dependency 12600: PrivateChannelReadStateStore */;
const env0_4 = (require(33) /* metro dependency 33 */).jsx;
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/home_drawer/native/HomeDrawerDirectMessagesRow.tsx');
exports.default = HomeDrawerDMsRowWrapper;
}
function HomeDrawerDMsRow() { // fn#109086, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14608:128, offset: 0x0233cb4e, size: 319 bytes, params: 1, frame: 22
const Text = (require(4573) /* metro dependency 4573: Text */).Text;
const intl = (require(1244) /* metro dependency 1244: indexNative */).intl;
const length = (require(566) /* metro dependency 566: flux */).useStateFromStores([PrivateChannelReadStateStore],
function() {
return PrivateChannelReadStateStore.getUnreadPrivateChannelIds().length;
});
const r4 = length > 0 ? <Text variant="text-xs/medium" color="text-default" lineClamp={1}>{intl.format((require(1244) /* metro dependency 1244: indexNative */).t.WCMsy8,
{numPeople: length})}</Text> : null;
const HomeDrawerSharedItem = (require(14407) /* metro dependency 14407: HomeDrawerShared */).HomeDrawerSharedItem;
const string = intl.string;
const YUU0RF = (require(1244) /* metro dependency 1244: indexNative */).t.YUU0RF;
return (
<HomeDrawerSharedItem
title={<Text variant="text-md/medium" color="text-default">{Reflect.apply(string, intl, [YUU0RF])}</Text>}
subtitle={r4}
/>
);
}
function HomeDrawerDMsRowWrapper() { // fn#109088, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14608:657, offset: 0x0233cca5, size: 114 bytes, params: 1, frame: 16
const MobileHomeDrawerExperiment = (require(4013) /* metro dependency 4013: HomeDrawerExperiment */).MobileHomeDrawerExperiment;
const useConfig = MobileHomeDrawerExperiment.useConfig;
const enableHome = Reflect.apply(useConfig, MobileHomeDrawerExperiment,
[{location: 'dm-expanded-children'}]).enableHome;
const isChatBesideChannelList = (importDefault(4010) /* metro dependency 4010: useChatLayout */)().isChatBesideChannelList;
const value2 = null;
return enableHome ? isChatBesideChannelList ? value2 : <HomeDrawerDMsRow /> : value2;
}