"use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("@material-ui/core"),r=require("../../../utils/mobileDetect.js"),o=require("../../Avatar/index.js"),a=require("./BadgeIcon.js"),s=r.isNativeDetected||r.isMobileDetected,l=i.makeStyles((function(e){return{icon:{padding:0,"&:hover":{"& .MuiBadge-root .MuiBadge-badge svg path":{"&:first-of-type":{fill:e.palette.primary.light}},"& .MuiAvatar-root":{outline:"1px solid ".concat(e.palette.primary.light)}},marginTop:4},badge:{top:2,right:6,"&:hover":{"& svg path":{"&:first-of-type":{fill:e.palette.primary.light}}}},tooltip:{marginTop:8}}}));module.exports=function(r){var n=r.displayName,d=void 0===n?"":n,p=r.imgSrc,c=r.size,g=void 0===c?24:c,u=l();return t.jsx(i.Tooltip,e.__assign({title:!s&&"Add Comment",placement:"bottom",classes:{tooltip:u.tooltip}},{children:t.jsx(i.IconButton,e.__assign({classes:{root:u.icon}},{children:t.jsx(i.Badge,e.__assign({classes:{badge:u.badge},badgeContent:t.jsx(a,{})},{children:t.jsx(o.AvatarComponent,{displayName:d,size:g,imgSrc:p})}))}))}))};
