"use strict";var e=require("@babel/runtime/helpers/defineProperty"),t=require("@babel/runtime/helpers/objectWithoutProperties"),r=require("react/jsx-runtime"),i=require("classnames"),n=require("@material-ui/core/ListItemIcon"),o=require("@material-ui/core"),a=require("../MenuItem/index.js");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=c(e),u=c(t),s=c(i),p=c(n),m=["classes","icon","children","small","iconType"];function f(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 d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?f(Object(r),!0).forEach((function(t){l.default(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var b=o.makeStyles((function(e){return{menuItem:{height:function(e){return e.small?36:54},lineHeight:function(e){return e.small?"17px":"24px"},"&:hover svg":{fill:function(t){var r=t.iconType,i=t.disabled;return"iconPark"===r?"":i?e.palette.primary.text9:e.palette.primary.contrastText},color:function(t){var r=t.iconType,i=t.disabled;return"mui"===r?"":i?e.palette.primary.text9:e.palette.primary.contrastText}}},listItemIcon:{paddingRight:e.spacing(1),color:function(t){return t.disabled?e.palette.primary.text9:e.palette.primary.text7},minWidth:"auto",fontSize:function(e){return e.small?16:24},"& .MuiSvgIcon-root":{fontSize:"inherit"}}}}));module.exports=function(e){var t=e.classes,i=void 0===t?{}:t,n=e.icon,o=e.children,c=e.small,l=e.iconType,f=void 0===l?"mui":l,y=u.default(e,m),h=b({small:c,disabled:y.disabled,iconType:f});return r.jsxs(a,d(d({classes:d(d({},i),{},{root:s.default(h.menuItem,i.root)})},y),{},{children:[r.jsx(p.default,{classes:{root:h.listItemIcon},children:n}),o]}))};
//# sourceMappingURL=index.js.map
