import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{jsx as r,jsxs as o,Fragment as n}from"react/jsx-runtime";import{makeStyles as i,Toolbar as c}from"@material-ui/core";import l from"classnames";var s=["numSelected","actions","content","classes"];function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function u(t){for(var r=1;r<arguments.length;r++){var o=null!=arguments[r]?arguments[r]:{};r%2?a(Object(o),!0).forEach((function(r){e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):a(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}var p=i({root:{"&.MuiToolbar-gutters":{paddingLeft:8,paddingRight:8}},highlight:{display:"flex",justifyContent:"space-between",backgroundColor:"rgba(3, 188, 212, 0.2)"},numSelected:{fontSize:14}}),d=function(i){var a=i.numSelected,d=void 0===a?0:a,f=i.actions,m=void 0===f?null:f,b=i.content,h=void 0===b?null:b,g=i.classes,O=t(i,s),j=p();return r(c,u(u({classes:g,className:l(j.root,null==g?void 0:g.root,e({},j.highlight,d>0))},O),{},{children:d>0?o(n,{children:[o("div",{className:j.numSelected,children:[d," selected"]}),r("div",{children:m})]}):r(n,{children:h})}))};export{d as default};
//# sourceMappingURL=TableToolbar.js.map
