import e from"prop-types";import{withStyles as r,FormControl as t,Select as o,MenuItem as a,ListItemText as i}from"@material-ui/core";import{jsx as s}from"react/jsx-runtime";function l(e){var r=e.items,l=e.currentValue,n=e.onChange,m=e.classes;return s(t,{className:m.formControl,children:s(o,{className:m.select,MenuProps:{classes:{paper:m.paper}},autoWidth:!0,value:l,onChange:function(e){return n(e.target.value)},children:r.map((function(e){return s(a,{value:e.key,children:s(i,{primary:e.label,classes:{root:m.listItem,primary:m.listItemPrimaryText}})},e.key)}))})})}l.propTypes={items:e.array.isRequired,currentValue:e.string.isRequired,onChange:e.func.isRequired,classes:e.shape({}).isRequired};var n=r({select:{"&:before":{borderBottom:0},"&:after":{borderBottom:0}},formControl:{width:"150px"},listItem:{padding:0},listItemPrimaryText:{color:"#fff",fontSize:"14px",overflow:"hidden",textOverflow:"ellipsis"},paper:{backgroundColor:"#414141",maxHeight:"300px"}})(l);export{n as default};
//# sourceMappingURL=MetricsSelect.js.map
