"use strict";var e=require("prop-types"),a=require("@material-ui/core"),r=require("react/jsx-runtime");function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=t(e),s=function(e){var t=e.value,u=e.onChange,s=e.mapping,l=e.classes,i=e.showLabel?"Trace Name":t?"":"Choose a trace";return r.jsxs(a.FormControl,{children:[r.jsx(a.InputLabel,{htmlFor:"traceKey",children:i}),r.jsx(a.Select,{displayEmpty:!0,value:t,className:l.select,onChange:function(e){return u(e.target.value)},inputProps:{name:"traceKey"},children:s&&s.map((function(e){var t=e.key,u=e.name;return r.jsx(a.MenuItem,{value:t,children:u},t)}))})]})};s.propTypes={value:u.default.string,onChange:u.default.func.isRequired,classes:u.default.shape({}).isRequired,showLabel:u.default.bool,mapping:u.default.arrayOf(u.default.shape({name:u.default.string.isRequired,key:u.default.string.isRequired}).isRequired).isRequired},s.defaultProps={value:"",showLabel:!1};var l=a.withStyles({select:{width:200}})(s);module.exports=l;
//# sourceMappingURL=TraceSelect.js.map
