decord/source/components_native/common/MessagePreview.tsx

42 lines
1.8 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 16036
// Function ID: 16037
2026-07-29 08:29:29 +00:00
// Name: MessagePreview
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 9066, 676, 21, 589, 1236, 15868, 12697, 2]
2026-07-29 08:29:29 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 16036 (MessagePreview)
2026-07-29 08:29:29 +00:00
import noop from "noop";
import messages from "messages";
import ME from "ME";
import { jsx } from "jsxProd";
let AnalyticsObjects;
let AnalyticsSections;
const require = arg1;
({ AnalyticsSections, AnalyticsObjects } = ME);
let closure_6 = { section: AnalyticsSections.CHANNEL_SEARCH, object: AnalyticsObjects.CHANNEL_SEARCH };
const result = require("ME").fileFinishedImporting("components_native/common/MessagePreview.tsx");
export default function MessagePreview(channelId) {
const onBeforeJumpToMessage = channelId.onBeforeJumpToMessage;
let jumpTargetId;
let obj = onBeforeJumpToMessage(589);
const items = [messages];
const stateFromStoresObject = obj.useStateFromStoresObject(items, () => ({ messages: messages.messages, jumpTargetId: messages.jumpTargetId }));
jumpTargetId = stateFromStoresObject.jumpTargetId;
const items1 = [jumpTargetId, onBeforeJumpToMessage];
const memo = React.useMemo(() => {
const obj = { jumpToChatText: null, jumpTargetId: null, onBeforeJumpToMessage: null };
const intl = onBeforeJumpToMessage(outer1_2[5]).intl;
obj[0] = intl.string(onBeforeJumpToMessage(outer1_2[5]).t["+TSRGD"]);
obj[1] = jumpTargetId;
obj[2] = onBeforeJumpToMessage;
return obj;
}, items1);
const effect = React.useEffect(() => () => {
callback(table[6]).clearMessages();
}, []);
obj = { channelId: channelId.channelId, messages: stateFromStoresObject.messages, jumpToChatProps: memo, analyticsLocation: closure_6 };
2026-08-15 05:55:55 +00:00
return jsx(onBeforeJumpToMessage(12697).ChatPreview, { channelId: channelId.channelId, messages: stateFromStoresObject.messages, jumpToChatProps: memo, analyticsLocation: closure_6 });
2026-07-29 08:29:29 +00:00
};