"use strict";var e=require('./../../ext-esm/tslib/tslib.es6.js'),t=require("react/jsx-runtime"),i=require("react"),r=require("@material-ui/core");function s(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=s(require("classnames")),a=r.makeStyles((function(e){return{disabled:{color:e.palette.primary.text9,opacity:1,cursor:"default"},tooltipTrigger:{position:"absolute",top:0,bottom:0,left:0,right:0}}})),l=i.forwardRef((function(i,s){var l=i.DisabledTooltipProps,n=void 0===l?void 0:l,d=i.disabled,u=void 0!==d&&d,c=e.__rest(i,["DisabledTooltipProps","disabled"]),p=a();return u?t.jsx(r.MenuItem,e.__assign({},c,{ref:s,className:o.default(p.disabled,c.className),tabIndex:-1,button:!1},{children:t.jsxs(t.Fragment,{children:[c.children,t.jsx(r.Tooltip,e.__assign({title:"Disabled",placement:"right"},n,{children:t.jsx("div",{onClick:function(e){e.stopPropagation()},className:p.tooltipTrigger})}))]})})):t.jsx(r.MenuItem,e.__assign({},c))}));module.exports=l;
