decord/source/modules/reactions/native/MessagePreviewReactions.tsx
github-actions 67d978d9fb chore: update source for alpha 346.0
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9672_m.js (378.6 MB)
2026-09-07 16:44:02 +00:00

43 lines
1.7 KiB
TypeScript

// Module ID: 11272
// Function ID: 11273
// Name: MessagePreviewReactions
// Dependencies: [19, 7596, 8360, 21, 504, 7162, 7182, 11261, 2]
// Exports: default
// Module 11272 (MessagePreviewReactions)
import noopAll from "noop" /* 19 */;
import closure_3 from "removePendingListFetch" /* 7596 */;
import closure_4 from "messages" /* 8360 */;
import { jsx } from "jsxProd" /* 21 */;
const require = arg1;
noopAll;
let closure_6 = [];
const result = require("set").fileFinishedImporting("modules/reactions/native/MessagePreviewReactions.tsx");
export default function MessagePreviewReactions(emoji) {
({ channelId, messageId } = emoji);
let obj = channelId(504);
const items = [closure_4, closure_3];
const items1 = [channelId, messageId];
const stateFromStores = obj.useStateFromStores(items, () => {
let message = closure_1_4.getMessage(messageId);
if (message == null) {
message = closure_1_3.getMessage(channelId, messageId);
}
return null != message ? message.reactions : closure_1_6;
}, items1);
obj = { value: messageId(7162)(messageId(7182).MESSAGE_PREVIEW_REACTIONS).analyticsLocations, children: null };
if (stateFromStores.length > 0) {
obj = { channelId: null, messageId: null, emoji: null, reactions: null };
obj[0] = channelId;
obj[1] = messageId;
obj[2] = emoji.emoji;
obj[3] = stateFromStores;
let tmp4Result = tmp4(tmp(11261).MessageReactionsContent, obj);
} else {
tmp4Result = tmp4(tmp(11261).MessageReactionsEmpty, {});
}
obj[1] = tmp4Result;
return jsx(channelId(7162).AnalyticsLocationProvider, { value: messageId(7162)(messageId(7182).MESSAGE_PREVIEW_REACTIONS).analyticsLocations, children: null });
};