"use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("prop-types"),r=require("@material-ui/core"),a=require("../../../utils/mobileDetect.js"),s=require("../../Avatar/index.js"),o=require("./BadgeIcon.js");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(i),d=a.isNativeDetected||a.isMobileDetected,p=r.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}}})),u=function(i){var a=i.displayName,l=i.imgSrc,n=i.size,u=p();return t.jsx(r.Tooltip,e.__assign({title:!d&&"Add Comment",placement:"bottom",classes:{tooltip:u.tooltip}},{children:t.jsx(r.IconButton,e.__assign({classes:{root:u.icon}},{children:t.jsx(r.Badge,e.__assign({classes:{badge:u.badge},badgeContent:t.jsx(o,{})},{children:t.jsx(s.default,{displayName:a,size:n,imgSrc:l})}))}))}))},c={displayName:n.default.string,imgSrc:n.default.string,size:n.default.number};u.propTypes=c,u.defaultProps={displayName:"",imgSrc:void 0,size:24},module.exports=u;
