decord/source/modules/guild_sidebar/native/ConnectedUserLimit.tsx
github-actions 777dc50a28 chore: update source for alpha 346.3
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4790.js (118.4 MB)
2026-09-10 19:12:31 +00:00

39 lines
1.1 KiB
TypeScript

// Module ID: 16201
// Function ID: 16202
// Name: ConnectedUserLimit
// Dependencies: [19, 21, 9157, 16202, 2]
// Exports: ConnectedUserLimit
// Module 16201 (ConnectedUserLimit)
import useChannelVideoLimitDefault from "useChannelVideoLimit" /* 9157 */;
import VoiceChannelUserLimitDefault from "VoiceChannelUserLimit" /* 16202 */;
import noop from "module_19" /* 19 */;
const jsx = fn(21).jsx;
const size = fn(2);
const result = size.fileFinishedImporting("modules/guild_sidebar/native/ConnectedUserLimit.tsx");
export const ConnectedUserLimit = function ConnectedUserLimit(users) {
({ channel, video } = users);
const limit = useChannelVideoLimitDefault(channel).limit;
let num = -1;
if (channel.userLimit > 0) {
num = channel.userLimit;
}
if (video) {
video = limit > 0;
}
let videoLimit = false;
let total = num;
if (video) {
let bound = limit;
if (num > 0) {
const _Math = Math;
bound = Math.min(num, limit);
}
total = bound;
videoLimit = num < 0 || limit < num;
const tmp4 = num < 0 || limit < num;
}
return jsx(VoiceChannelUserLimitDefault, { users: users.userCount, total, videoLimit });
};