import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import r from"classnames";import{makeStyles as i}from"@material-ui/core";import o from"../../IconButton/index.js";import{jsx as n}from"react/jsx-runtime";var c=["onClick","className","children","tooltipProps","isActive","isHidden","disabled"];function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,i)}return r}function a(t){for(var r=1;r<arguments.length;r++){var i=null!=arguments[r]?arguments[r]:{};r%2?s(Object(i),!0).forEach((function(r){e(t,r,i[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var l=i((function(e){return{button:{marginBottom:"4px","&.Mui-disabled":{opacity:1,backgroundColor:"rgba(255, 255, 255, 0.08)",color:e.palette.primary.text9}},isHidden:{visibility:"hidden"}}})),p=function(i){var s=i.onClick,p=i.className,b=i.children,d=i.tooltipProps,m=i.isActive,u=i.isHidden,f=i.disabled,O=t(i,c),y=l();return n(o,a(a({tooltipProps:d,className:r(y.button,p,e({},y.isHidden,u)),variant:"contained",size:"small",isActive:m,disabled:f,onClick:f?null:s},O),{},{children:b}))};export{p as default};
//# sourceMappingURL=ChartButton.js.map
