Loading
function(e,n,t){t.d(n,{h:()=>c});var l=t(477900),i=t(582128),s=t(416696),a=t(797394),r=t(204651),o=t(375708);function c(e){let n,t,{hasPermission:c,streamActive:u,isSelfStream:d,videoBlocked:A=!1,centerButton:h,onMouseEnter:m,onMouseLeave:C,renderNUXHighlight:E,buttonRef:p,...g}=e,f=h?r.l:r.A;t=A?o.intl.string(o.t.GFr0GR):u?d?o.intl.string(o.t.S5anIc):o.intl.string(o.t.q3O3J8):c?o.intl.string(o.t.fjBNo1):o.intl.string(o.t.uQn9B8);let{Component:I,events:x,play:v}=(0,s.c)(u?"disable":"enable"),T=A?a.i:I;return i.useEffect(()=>()=>v(),[u,v]),(0,l.jsx)(f,{buttonRef:p,isTrayButton:!0,label:t,disabled:!c,iconComponent:T,isActive:u,color:(E?n="premiumGradient":u&&(n="green"),n),onMouseEnter:e=>{m?.(e),x.onMouseEnter()},onMouseLeave:e=>{C?.(e),x.onMouseLeave()},...g})}}