import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsxs as r,jsx as i}from"react/jsx-runtime";import o from"classnames";import n from"@material-ui/core/ListItemIcon";import{makeStyles as c}from"@material-ui/core";import a from"../MenuItem/index.js";var l=["classes","icon","children","small","iconType"];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 p(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 m=c((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"}}}})),u=function(e){var c=e.classes,s=void 0===c?{}:c,u=e.icon,f=e.children,b=e.small,d=e.iconType,y=void 0===d?"mui":d,h=t(e,l),O=m({small:b,disabled:h.disabled,iconType:y});return r(a,p(p({classes:p(p({},s),{},{root:o(O.menuItem,s.root)})},h),{},{children:[i(n,{classes:{root:O.listItemIcon},children:u}),f]}))};export{u as default};
//# sourceMappingURL=index.js.map
