"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"),s=require("../../../utils/mobileDetect.js"),o=require("../../Icons/RecommendationIcon.js"),u=require("react/jsx-runtime");function d(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=d(e),n=d(r),c=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,d=e.displayName,p=e.feedItem,m=e.isRecommended,v=e.currentUser,f=c();return u.jsxs("div",{className:n.default(f.avatarWrapper,l.default({},f.avatarWrapperNative,s.isNativeDetected)),children:[s.isNativeDetected?u.jsx(t.default,{displayName:d,imgSrc:null===(r=p.user)||void 0===r?void 0:r.profile_photo,size:32}):u.jsx(i,{user:p.user,currentUser:v,children:u.jsx(t.default,{displayName:d,imgSrc:null===(a=p.user)||void 0===a?void 0:a.profile_photo,size:32,className:f.avatar})}),m&&u.jsx("div",{className:f.recommendationWrapper,children:u.jsx(o,{})})]})};
