Module 496841

659 characters · in no known chunk
Dependencies
Required by (2)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>f});var r=n(627968),i=n(64700),s=n(397927),a=n(956793),o=n(688810),l=n(384059),u=n(203982),c=n(709562),d=n(652215),_=n(985018);function f(e){let{channel:t,centerButton:n=!1,onCallJoined:f,...p}=e,{parentAnalyticsLocation:h}=(0,o.Ay)(),m=n?c.l:c.A,E=t.isManaged()||!t.isPrivate()?_.intl.string(_.t.S0W8Z5):_.intl.string(_.t["0D/6Rz"]),g=i.useCallback(()=>{f?.(),(0,l.X)(h,l.O.JOIN_CALL),a.default.selectVoiceChannel(t.id)},[t.id,f,h]);return i.useEffect(()=>(u._.subscribe(d.jej.CALL_ACCEPT,g),()=>{u._.unsubscribe(d.jej.CALL_ACCEPT,g)}),[g]),(0,r.jsx)(m,{...p,iconComponent:s._jp,label:E,onClick:g,isTrayButton:!1})}}