"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react/jsx-runtime"),r=require("react"),a=require("../../Avatar/Avatar.js"),s=require("../../Chip/Chip.js"),i=require("../../TextEndTruncated/TextEndTruncated.js"),t=require("../../Text/Text.js"),n=require("../../Menu/Menu.js"),c=require("./ShareModal.scss.js"),u=r.memo((function(u){var l=u.onClick,d=u.isSelected,x=u.user,m=x.first_name,o=x.last_name,j=x.profile_photo,h=x.email,f="".concat(m," ").concat(o),T=r.useCallback((function(){return l(x)}),[l,x]);return e.jsxs(n.Menu.Item,{className:c.item,size:"large",onClick:T,prefix:e.jsx(e.Fragment,{children:e.jsx(a.Avatar,{imageSrc:j,name:f,size:32,className:c.affix})}),suffix:d?e.jsx(e.Fragment,{children:e.jsx(s.Chip,{size:"small",shape:"square",className:c.affix,children:"Shared"})}):void 0,children:[e.jsx(i.TextEndTruncated,{children:f}),e.jsx(t.Text,{tagName:"div",size:14,color:"T6",children:e.jsx(i.TextEndTruncated,{children:h})})]})}));exports.Item=u;
//# sourceMappingURL=Item.js.map
