import{r as o,j as e}from"./vendor-react-AXa6hZO5.js";import{M as r}from"./vendor-intl-BdADXLLt.js";import{f as s,G as t}from"./index-C_tZnXTW.js";import"./vendor-infra-CFC-WJ8N.js";import"./vendor-zod-CMvj0_Fd.js";import"./cec18ad9a-DiLjrOUd.js";import"./vendor-radix-glKlawmm.js";import"./vendor-zustand-CcZsBpBq.js";import"./vendor-icons-Dy3Nea9p.js";import"./vendor-lodash-BKAXkXVe.js";import"./vendor-motion-0BJMgYoH.js";import"./vendor-router-BSYVf8By.js";import"./vendor-query-D7SPXjZv.js";import"./vendor-growthbook-XJcBFzji.js";import"./cdd5b9598-juLasKsB.js";import"./c2591c98b-9UrrTnB9.js";import"./vendor-luxon-D0OkDiyb.js";import"./c51f8bc6d-BS9P5nN1.js";import"./tree-sitter-BFuuT2ac.js";const n=o.memo(({onDismiss:n,onAction:i})=>{const{data:m}=s(),d=o.useCallback(()=>{i()},[i]),a=m?.filter(o=>"join_org"===o.request_type).length??0;return 0===a?null:e.jsx(t,{message:e.jsx(r,{defaultMessage:"{count, plural, one {# person} other {# people}} requested to join your team",id:"LgUo5X28bJ",values:{count:a}}),button:{children:e.jsx(r,{defaultMessage:"Review requests",id:"L7Vyuuco4h"}),href:"/settings/members",onLinkClick:d},onDismiss:n})});n.displayName="PendingRequestsBanner";export{n as PendingRequestsBanner};
