decord/source/modules/voice_panel/native/VoicePanelContainer.tsx
github-actions 20a21ad13f chore: update source for alpha 346.5
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4791.js (118.4 MB)
2026-09-11 19:12:58 +00:00

47 lines
1.8 KiB
TypeScript

// Module ID: 17130
// Function ID: 17131
// Name: VoicePanelContainer
// Dependencies: [19, 1957, 4814, 21, 504, 17131, 17175, 4229, 4317, 2]
// Module 17130 (VoicePanelContainer)
import _mod4229 from "module_4229" /* 4229 */;
import native from "native" /* 4317 */;
import VoicePanelControllerDefault from "VoicePanelController" /* 17131 */;
import VoicePanelUIDefault from "VoicePanelUI" /* 17175 */;
import noop from "module_19" /* 19 */;
import ChannelStore from "ChannelStore" /* 1957 */;
import VoicePanelStore from "VoicePanelStore" /* 4814 */;
require = fn;
function VoicePanel(arg0) {
_require = arg0;
const items = [ChannelStore];
const stateFromStores = require("initialize").useStateFromStores(items, () => {
const channel = ChannelStore.getChannel(channelId.channelId);
let guild_id;
if (channel != null) {
guild_id = channel.guild_id;
}
return guild_id;
});
const obj2 = {};
const obj = require("initialize");
const merged = Object.assign(arg0);
obj2.guildId = stateFromStores;
obj2.children = noop.useMemo(() => jsx(VoicePanelUIDefault, {}), []);
return jsx(VoicePanelControllerDefault, {});
}
function getChannelKey(arg0) {
return arg0;
}
function renderVoicePanel(arg0, channelId, transitionState, transitionCleanUp) {
return <VoicePanel key={arg1} channelId={arg1} transitionState={arg2} transitionCleanUp={arg3} />;
}
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/voice_panel/native/VoicePanelContainer.tsx");
export default noop.memo(function VoicePanelContainer() {
const tmp = VoicePanelStore((channels) => Array.from(channels.channels), _mod4229.shallow);
return jsx(native.TransitionGroup, { items: VoicePanelStore((channels) => Array.from(channels.channels), _mod4229.shallow), getItemKey: getChannelKey, renderItem: renderVoicePanel });
});