import{a as s}from"./chunk-M7IKOXH5.mjs";import{a as m}from"./chunk-NAS5LN2B.mjs";import{AvatarWithPlaceholder as y}from"@baseapp-frontend/design-system/components/web/avatars";import{Box as j,Checkbox as k,Typography as h}from"@mui/material";import{useFragment as B}from"react-relay";import{jsx as a,jsxs as c}from"react/jsx-runtime";var P=function(e){var n=e.profile,g=e.handleAddMember,x=e.handleRemoveMember,o=e.isBeingAdded,f=o===void 0?!1:o,l=e.isExistingMember,r=l===void 0?!1:l,t=B(m,n),p=t.id,d=t.image,u=t.name,i=t.urlPath,v=function(M){var A=M.target;A.checked?g(n):x(n)},b=function(){return r?"Already added to the group":i!=null&&i.path?"@".concat(i.path):""};return c(s,{children:[a(y,{width:48,height:48,src:d?.url,sx:{alignSelf:"center",justifySelf:"center"}}),c(j,{sx:{display:"grid",gridTemplateRows:"repeat(2, minmax(0, 1fr))"},children:[a(h,{variant:"subtitle2",color:r?"text.disabled":"text.primary",children:u}),a(h,{variant:"caption",color:r?"text.disabled":"text.secondary",sx:{fontStyle:r?"italic":"normal"},children:b()})]}),!r&&a(k,{checked:f,onChange:v})]},"chat-room-item-".concat(p))},I=P;export{I as a};
//# sourceMappingURL=chunk-5YGUT7AH.mjs.map