import{gH as l,iv as c,iA as u,fH as e,ck as m,cv as f,bp as p,jG as g,a as h}from"./strapi-ye6TfKul.js";import{i as x}from"./isNil-DNtdeVpF.js";const S=l.forwardRef((i,a)=>{const{formatMessage:s}=c(),{license:r,isError:n,isLoading:o}=u(),{permittedSeats:d,shouldStopCreate:t}=r??{};return n||o?null:e.jsxs(m,{width:"100%",gap:2,children:[!x(d)&&t&&e.jsx(f,{label:s({id:"Settings.application.admin-seats.at-limit-tooltip",defaultMessage:"At limit: add seats to invite more users"}),side:"left",children:e.jsx(p,{width:"1.4rem",height:"1.4rem",fill:"danger500"})}),e.jsx(g,{ref:a,"data-testid":"create-user-button",startIcon:e.jsx(h,{}),size:"S",disabled:t,...i,fullWidth:!0,children:s({id:"Settings.permissions.users.create",defaultMessage:"Invite new user"})})]})});export{S as CreateActionEE};
