Module 52144

771 characters · in 30a277b9d32d70b1.js
Dependencies
Required by (1)
Lazily required by (0)none
Lazily requires (0)none
Source Raw
function(e,t,n){n.d(t,{A:()=>_});var i=n(627968),l=n(64700),a=n(311907),r=n(397927),s=n(189252),o=n(851580),d=n(222823),c=n(287809),u=n(371911),A=n(790782),h=n(985018);function _(e){let{onOpen:t,onClose:n,"data-jump-section":_}=e,m=(0,a.bG)([c.default],()=>c.default.getCurrentUser()),g=l.useRef(null),p=(0,a.bG)([d.Ay],()=>m?.id!=null&&d.Ay.getMentionCount(m.id,A.P.NOTIFICATION_CENTER)>0);return(0,i.jsx)(u.C,{targetElementRef:g,onOpen:t,onClose:n,badgeState:{badgeForYou:p},popoutPosition:"bottom",popoutAlign:"right",children:(e,t,n,l)=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(s.A,{...n,icon:r.K$s,tooltip:h.intl.string(h.t.GSmTKJ),onClick:e,showBadge:p||l,selected:t,"data-jump-section":_,ref:g}),(0,i.jsx)(o.v,{location:"inbox-button",targetElementRef:g})]})})}}