"use strict";var e=require("@babel/runtime/helpers/defineProperty"),r=require("classnames"),a=require("@material-ui/core"),t=require("../../Avatar/index.js"),i=require("../../UserCardPopover.js"),o=require("../../../utils/mobileDetect.js"),s=require("../../Icons/RecommendationIcon.js"),n=require("react/jsx-runtime");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(e),l=u(r),p=a.makeStyles({avatarWrapper:{width:32,height:32,backgroundColor:"grey",borderRadius:"100%",position:"absolute",top:22,left:-16},avatarWrapperNative:{left:"auto"},recommendationWrapper:{position:"absolute",bottom:-8,right:-6}});module.exports=function(e){var r,a,u=e.displayName,c=e.feedItem,m=e.isRecommended,v=e.currentUser,f=p();return n.jsxs("div",{className:l.default(f.avatarWrapper,d.default({},f.avatarWrapperNative,o.isNativeDetected)),children:[o.isNativeDetected?n.jsx(t.AvatarComponent,{displayName:u,imgSrc:null===(r=c.user)||void 0===r?void 0:r.profile_photo,size:32}):n.jsx(i,{user:c.user,currentUser:v,children:n.jsx(t.AvatarComponent,{displayName:u,imgSrc:null===(a=c.user)||void 0===a?void 0:a.profile_photo,size:32,className:f.avatar})}),m&&n.jsx("div",{className:f.recommendationWrapper,children:n.jsx(s,{})})]})};
