"use strict";var e=require("prop-types"),r=require("@material-ui/core"),t=require("react/jsx-runtime");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=a(e);function i(e){var a=e.items,s=e.currentValue,i=e.onChange,o=e.classes;return t.jsx(r.FormControl,{className:o.formControl,children:t.jsx(r.Select,{className:o.select,MenuProps:{classes:{paper:o.paper}},autoWidth:!0,value:s,onChange:function(e){return i(e.target.value)},children:a.map((function(e){return t.jsx(r.MenuItem,{value:e.key,children:t.jsx(r.ListItemText,{primary:e.label,classes:{root:o.listItem,primary:o.listItemPrimaryText}})},e.key)}))})})}i.propTypes={items:s.default.array.isRequired,currentValue:s.default.string.isRequired,onChange:s.default.func.isRequired,classes:s.default.shape({}).isRequired};var o=r.withStyles({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"}})(i);module.exports=o;
