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

66 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-08-15 05:55:55 +00:00
// Module ID: 9910
// Function ID: 9911
2026-07-20 16:05:17 +00:00
// Name: UserProfileVoiceActivityIcon
2026-08-15 05:55:55 +00:00
// Dependencies: [19, 4021, 505, 21, 589, 8508, 5287, 6891, 6892, 6894, 6893, 6896, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-15 05:55:55 +00:00
// Module 9910 (UserProfileVoiceActivityIcon)
2026-07-29 08:29:29 +00:00
import "noop";
import getUncachedChannelPermissions from "getUncachedChannelPermissions";
2026-07-23 10:11:24 +00:00
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;
2026-07-29 08:29:29 +00:00
const merged = Object.assign(channel, Object.create(null));
let obj = channel(589);
const items = [getUncachedChannelPermissions];
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();
2026-07-29 08:29:29 +00:00
let tmp6 = !stateFromStores;
if (stateFromStores) {
2026-08-15 05:55:55 +00:00
tmp6 = importDefault(5287)(channel);
2026-07-20 16:05:17 +00:00
}
if (isGuildStageVoiceResult) {
2026-07-29 08:29:29 +00:00
if (tmp6) {
2026-07-20 16:05:17 +00:00
obj = {};
const merged1 = Object.assign(merged);
2026-08-15 05:55:55 +00:00
let tmp8Result = jsx(tmp2(6891).StageLockIcon, {});
2026-07-20 16:05:17 +00:00
}
return tmp8Result;
}
if (isGuildStageVoiceResult) {
2026-07-29 08:29:29 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
const merged2 = Object.assign(merged);
2026-08-15 05:55:55 +00:00
tmp8Result = jsx(tmp2(6892).StageIcon, {});
2026-07-20 16:05:17 +00:00
} else if (channel.isNSFW()) {
2026-07-29 08:29:29 +00:00
const obj1 = {};
2026-07-20 16:05:17 +00:00
const merged3 = Object.assign(merged);
2026-08-15 05:55:55 +00:00
tmp8Result = tmp8(tmp2(6894).VoiceWarningIcon, obj1);
2026-07-20 16:05:17 +00:00
} else {
2026-07-29 08:29:29 +00:00
if (tmp6) {
2026-08-15 05:55:55 +00:00
let VoiceNormalIcon = tmp2(6893).VoiceLockIcon;
2026-07-20 16:05:17 +00:00
} else {
2026-08-15 05:55:55 +00:00
VoiceNormalIcon = tmp2(6896).VoiceNormalIcon;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const obj2 = {};
2026-07-20 16:05:17 +00:00
const merged4 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
tmp8Result = tmp8(VoiceNormalIcon, obj2);
2026-07-20 16:05:17 +00:00
}
}
}
const merged5 = Object.assign(merged);
2026-08-15 05:55:55 +00:00
return jsx(channel(8508).PhoneCallIcon, {});
2026-07-20 16:05:17 +00:00
};