import{o as e}from"./rolldown-runtime-iuO8RvI4.js";import{Z as s}from"./shared-0-C4kdVF7Y.js";import{Mi as o,ki as r}from"./vendor-frame-CwiylG4Y.js";import{r as t}from"./shared-6-Cf_fMhRZ.js";import{nn as a}from"./vendor-all-2-BJdkbLSj.js";import{di as i}from"./shared-2-CMUBhYOn.js";var n=e(o()),m=r(),l=(0,n.memo)(({onDismiss:e,onAction:o})=>{const{data:r}=s(),l=i(),u=(0,n.useCallback)(()=>{o()},[o]),d=r?.filter(e=>"join_org"===e.request_type).length??0;return 0===d||l?null:(0,m.jsx)(t,{message:(0,m.jsx)(a,{defaultMessage:"{count, plural, one {# person} other {# people}} requested to join your team",id:"LgUo5X28bJ",values:{count:d}}),button:{children:(0,m.jsx)(a,{defaultMessage:"Review requests",id:"L7Vyuuco4h"}),href:"/admin-settings/members",onLinkClick:u},onDismiss:e})});export{l as PendingRequestsBanner};