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