import e from"@babel/runtime/helpers/defineProperty";import t from"@babel/runtime/helpers/objectWithoutProperties";import{makeStyles as r,Toolbar as n}from"@material-ui/core";import o from"classnames";import c from"prop-types";import{jsx as i,jsxs as l,Fragment as s}from"react/jsx-runtime";var a=["numSelected","actions","content","classes"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?p(Object(n),!0).forEach((function(r){e(t,r,n[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var m=r({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(r){var c=r.numSelected,p=r.actions,d=r.content,f=r.classes,b=t(r,a),h=m();return i(n,u(u({classes:f,className:o(h.root,null==f?void 0:f.root,e({},h.highlight,c>0)),variant:"dense"},b),{},{children:c>0?l(s,{children:[l("div",{className:h.numSelected,children:[c," selected"]}),i("div",{children:p})]}):i(s,{children:d})}))};d.propTypes={numSelected:c.number,actions:c.node,content:c.node},d.defaultProps={numSelected:c.number,actions:null,content:null};export{d as default};
