// Module ID: 11027 // Function ID: 11028 // Name: UserProfileVoiceActivityIcon // Dependencies: [19, 4278, 1085, 21, 504, 7987, 5146, 5180, 5181, 5183, 5182, 5185, 2] // Exports: default // Module 11027 (UserProfileVoiceActivityIcon) import isRoleRequiredDefault from "isRoleRequired" /* 5146 */; import noop from "module_19" /* 19 */; import PermissionStore from "PermissionStore" /* 4278 */; const require = fn; const Permissions = fn(1085).Permissions; const jsx = fn(21).jsx; const size = fn(2); const result = size.fileFinishedImporting("modules/user_profile/native/UserProfileVoiceActivityIcon.tsx"); export default function UserProfileVoiceActivityIcon(channel) { channel = channel.channel; const merged = Object.assign(channel, Object.assign({ channel: 0 })); const items = [PermissionStore]; const stateFromStores = channel(504).useStateFromStores(items, () => { let isPrivateResult = channel.isPrivate(); if (!isPrivateResult) { isPrivateResult = PermissionStore.can(Permissions.CONNECT, channel); } return isPrivateResult; }); if (!channel.isDM()) { if (!channel.isGroupDM()) { const isGuildStageVoiceResult = channel.isGuildStageVoice(); let tmp6 = !stateFromStores; if (stateFromStores) { tmp6 = isRoleRequiredDefault(channel); } if (isGuildStageVoiceResult) { if (tmp6) { const obj2 = {}; const merged1 = Object.assign(merged); let tmp8Result = jsx(tmp2(5180).StageLockIcon, {}); } return tmp8Result; } if (isGuildStageVoiceResult) { const obj3 = {}; const merged2 = Object.assign(merged); tmp8Result = jsx(tmp2(5181).StageIcon, {}); } else if (channel.isNSFW()) { const obj4 = {}; const merged3 = Object.assign(merged); tmp8Result = tmp8(tmp2(5183).VoiceWarningIcon, obj4); } else { if (tmp6) { let VoiceNormalIcon = tmp2(5182).VoiceLockIcon; } else { VoiceNormalIcon = tmp2(5185).VoiceNormalIcon; } const obj5 = {}; const merged4 = Object.assign(merged); tmp8Result = tmp8(VoiceNormalIcon, obj5); } } } const merged5 = Object.assign(merged); return jsx(channel(7987).PhoneCallIcon, {}); };