decord/source/modules/keyboard/native/PortalKeyboardRendererComponent.tsx

58 lines
2.4 KiB
TypeScript
Raw Normal View History

// Module ID: 16842
// Function ID: 16843
// Name: PortalKeyboardRendererComponent
// Dependencies: [19, 1957, 21, 7295, 1609, 12130, 9502, 16843, 16849, 2]
2026-07-20 16:05:17 +00:00
// Module 16842 (PortalKeyboardRendererComponent)
import FakePlaceholderPrivateChannel from "FakePlaceholderPrivateChannel" /* 7295 */;
import noop from "module_19" /* 19 */;
import ChannelStore from "ChannelStore" /* 1957 */;
2026-07-23 10:11:24 +00:00
require = fn;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/keyboard/native/PortalKeyboardRendererComponent.tsx");
export default noop.memo(function PortalKeyboardRendererComponent(item) {
2026-07-20 16:05:17 +00:00
item = item.item;
const channelId = item.channelId;
({ chatInputRef, type } = item);
({ state, cleanUp } = item);
const channel = ChannelStore.getChannel(channelId);
2026-07-20 16:05:17 +00:00
const items = [channel, channelId];
const memo = noop.useMemo(() => {
if (channelId !== FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL_ID) {
2026-07-20 16:05:17 +00:00
let FAKE_PLACEHOLDER_PRIVATE_CHANNEL = channel;
} else {
FAKE_PLACEHOLDER_PRIVATE_CHANNEL = FakePlaceholderPrivateChannel.FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
2026-07-20 16:05:17 +00:00
}
return FAKE_PLACEHOLDER_PRIVATE_CHANNEL;
}, items);
const items1 = [memo];
const memo1 = noop.useMemo(() => {
2026-07-29 08:29:29 +00:00
let tmp2;
2026-07-20 16:05:17 +00:00
if (null != memo) {
const obj = { channel: tmp, type: "channel" };
2026-07-29 08:29:29 +00:00
tmp2 = obj;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp2;
2026-07-20 16:05:17 +00:00
}, items1);
if (null != memo) {
if (undefined !== memo1) {
2026-07-23 10:11:24 +00:00
if (channelId(memo[4]).KeyboardTypes.APP_LAUNCHER === type) {
const obj2 = { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT };
return jsx(channel(tmp12[5]), { context: memo1, chatInputRef, onClose: cleanUp, transitionState: state, entrypoint: tmp11(tmp12[6]).AppLauncherEntrypoint.TEXT });
2026-07-29 08:29:29 +00:00
} else if (tmp11(tmp12[4]).KeyboardTypes.MEDIA === type) {
const obj3 = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state };
return jsx(channel(tmp12[7]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state });
2026-07-29 08:29:29 +00:00
} else if (tmp11(tmp12[4]).KeyboardTypes.EXPRESSION === type) {
let obj = { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state };
return jsx(channel(tmp12[8]), { channel: memo, chatInputRef, onClose: cleanUp, transitionState: state });
2026-07-20 16:05:17 +00:00
} else {
return null;
}
}
}
return null;
});