decord/source/modules/user_profile/native/UserProfileVoiceActivityIcon.tsx

68 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 9014
2026-07-27 11:26:19 +00:00
// Function ID: 70915
2026-07-20 16:05:17 +00:00
// Name: UserProfileVoiceActivityIcon
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 3759, 482, 33, 566, 9015, 4624, 4654, 4655, 4657, 4656, 4659, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 9014 (UserProfileVoiceActivityIcon)
2026-07-23 10:11:24 +00:00
import "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
import { Permissions } from "sum";
import { jsx } from "jsxProd";
const require = arg1;
const result = require("sum").fileFinishedImporting("modules/user_profile/native/UserProfileVoiceActivityIcon.tsx");
2026-07-20 16:05:17 +00:00
export default function UserProfileVoiceActivityIcon(channel) {
channel = channel.channel;
let obj = Object.create(null);
obj.channel = 0;
const merged = Object.assign(channel, obj);
2026-07-23 10:11:24 +00:00
obj = channel(566);
const items = [_isNativeReflectConstruct];
2026-07-20 16:05:17 +00:00
const stateFromStores = obj.useStateFromStores(items, () => {
let isPrivateResult = channel.isPrivate();
if (!isPrivateResult) {
2026-07-23 10:11:24 +00:00
isPrivateResult = outer1_3.can(outer1_4.CONNECT, channel);
2026-07-20 16:05:17 +00:00
}
return isPrivateResult;
});
if (!channel.isDM()) {
if (!channel.isGroupDM()) {
const isGuildStageVoiceResult = channel.isGuildStageVoice();
let tmp5 = !stateFromStores;
if (!tmp5) {
2026-07-25 08:10:48 +00:00
tmp5 = importDefault(4624)(channel);
2026-07-20 16:05:17 +00:00
}
if (isGuildStageVoiceResult) {
if (tmp5) {
obj = {};
const merged1 = Object.assign(merged);
2026-07-25 08:10:48 +00:00
let tmp8Result = jsx(channel(4654).StageLockIcon, {});
2026-07-20 16:05:17 +00:00
}
return tmp8Result;
}
if (isGuildStageVoiceResult) {
const obj1 = {};
const merged2 = Object.assign(merged);
2026-07-25 08:10:48 +00:00
tmp8Result = jsx(channel(4655).StageIcon, {});
2026-07-20 16:05:17 +00:00
} else if (channel.isNSFW()) {
const obj2 = {};
const merged3 = Object.assign(merged);
2026-07-25 08:10:48 +00:00
tmp8Result = tmp8(tmp9(4657).VoiceWarningIcon, obj2);
2026-07-20 16:05:17 +00:00
} else {
if (tmp5) {
2026-07-25 08:10:48 +00:00
let VoiceNormalIcon = tmp9(4656).VoiceLockIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-07-25 08:10:48 +00:00
VoiceNormalIcon = tmp9(4659).VoiceNormalIcon;
2026-07-20 16:05:17 +00:00
}
const obj3 = {};
const merged4 = Object.assign(merged);
tmp8Result = tmp8(VoiceNormalIcon, obj3);
}
}
}
const merged5 = Object.assign(merged);
2026-07-25 08:10:48 +00:00
return jsx(channel(9015).PhoneCallIcon, {});
2026-07-20 16:05:17 +00:00
};