Module 973937

713 characters · in 4802141e76d8a0fc.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,n,t){t.d(n,{A:()=>h});var l=t(477900),i=t(582128),s=t(17928),a=t(477782),r=t(367513),o=t(446243),c=t(558076),u=t(360729),d=t(198052),A=t(806931),m=t(375708);function h(e,n){let t=(0,s.bG)([d.A],()=>d.A.getSelectedParticipant(e),[e]),{enabled:h}=(0,u.mf)({guildId:n,location:"useGridViewItem"}),{isGuildRoomVisible:C,isVideoOverlayVisible:E}=(0,s.cf)([c.A],()=>({isGuildRoomVisible:c.A.isVisible(e),isVideoOverlayVisible:c.A.getVideoOverlayVisibility()}),[e]),p=h&&C,g=p?E:null==t,f=i.useCallback(()=>{p?(0,o.UV)(!E,e):null!=t?r.A.selectParticipant(e,null):r.A.selectParticipant(e,A.jd.AUTO)},[p,E,t,e]);return(0,l.jsx)(a.sL,{id:"call-grid-view",label:m.intl.string(m.t["3jrUBj"]),checked:g,action:f})}}