import{a as m}from"./chunk-YQPYJZAN.mjs";import{a as n}from"./chunk-KY323GRB.mjs";import{AvatarWithPlaceholder as p}from"@baseapp-frontend/design-system/components/web/avatars";import{IconButton as c}from"@baseapp-frontend/design-system/components/web/buttons";import{FilledCloseIcon as f}from"@baseapp-frontend/design-system/components/web/icons";import{Box as h,Typography as u}from"@mui/material";import{useFragment as x}from"react-relay";import{jsx as e,jsxs as a}from"react/jsx-runtime";var v=function(i){var t=i.profile,l=i.handleRemoveMember,r=x(n,t),d=r.id,o=r.image,s=r.name;return a(m,{children:[a(h,{sx:{position:"relative"},children:[e(c,{size:"small",sx:{position:"absolute",top:0,right:0,zIndex:1},onClick:function(){return l(t)},children:e(f,{})}),e(p,{width:64,height:64,src:o?.url,sx:{alignSelf:"center",justifySelf:"center"}})]}),e(u,{variant:"subtitle2",noWrap:!0,sx:{overflow:"hidden",textOverflow:"ellipsis",maxWidth:"64px"},children:s})]},"chat-room-item-".concat(d))},W=v;export{W as a};
//# sourceMappingURL=chunk-WSOAFMXJ.mjs.map