decord/source/modules/voice_panel/native/VoicePanelContainer.tsx

44 lines
1.7 KiB
TypeScript
Raw Normal View History

2026-07-27 11:26:19 +00:00
// Module ID: 15803
// Function ID: 121826
2026-07-20 16:05:17 +00:00
// Name: VoicePanel
2026-07-27 11:26:19 +00:00
// Dependencies: [31, 1348, 4343, 33, 566, 15804, 15845, 3744, 4477, 2]
2026-07-20 16:05:17 +00:00
2026-07-27 11:26:19 +00:00
// Module 15803 (VoicePanel)
2026-07-23 10:11:24 +00:00
import importAllResult from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import withEqualityFn from "withEqualityFn";
import { jsx } from "jsxProd";
const require = arg1;
2026-07-20 16:05:17 +00:00
function VoicePanel(arg0) {
2026-07-23 10:11:24 +00:00
const _require = arg0;
let obj = _require(566);
const items = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
2026-07-23 10:11:24 +00:00
const channel = outer1_4.getChannel(channelId.channelId);
2026-07-20 16:05:17 +00:00
let guild_id;
if (null != channel) {
guild_id = channel.guild_id;
}
return guild_id;
});
obj = {};
const merged = Object.assign(arg0);
obj["guildId"] = stateFromStores;
2026-07-23 10:11:24 +00:00
obj["children"] = importAllResult.useMemo(() => outer1_6(outer1_1(outer1_2[6]), {}), []);
2026-07-27 11:26:19 +00:00
return jsx(importDefault(15804), {});
2026-07-20 16:05:17 +00:00
}
function getChannelKey(arg0) {
return arg0;
}
function renderVoicePanel(arg0, channelId, transitionState, transitionCleanUp) {
return <VoicePanel key={arg1} channelId={arg1} transitionState={arg2} transitionCleanUp={arg3} />;
}
const memoResult = importAllResult.memo(function VoicePanelContainer() {
2026-07-25 08:10:48 +00:00
const tmp = callback((channels) => Array.from(channels.channels), require(3744) /* isIterable */.shallow);
return jsx(require(4477) /* _createForOfIteratorHelperLoose */.TransitionGroup, { items: callback((channels) => Array.from(channels.channels), require(3744) /* isIterable */.shallow), getItemKey: getChannelKey, renderItem: renderVoicePanel });
2026-07-20 16:05:17 +00:00
});
2026-07-23 10:11:24 +00:00
const result = require("withEqualityFn").fileFinishedImporting("modules/voice_panel/native/VoicePanelContainer.tsx");
2026-07-20 16:05:17 +00:00
export default memoResult;