"use strict";Object.defineProperty(exports,"__esModule",{value:!0});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 l=a(e),n=function(e){var a=e.label,l=e.currentValue,n=e.options,u=e.className,i=e.renderValue,s=e.onChange;return t.jsxs(r.FormControl,{className:u,children:[a&&t.jsx(r.InputLabel,{shrink:!0,children:a}),t.jsx(r.Select,{"data-testid":"".concat("SingleSelect","_select_").concat(a),value:l,renderValue:i,onChange:s,children:n.map((function(e){var a=e.value,l=e.label;return t.jsx(r.MenuItem,{"data-testid":"".concat("SingleSelect","_option_").concat(a,"MenuItem"),value:a,children:l},a)}))})]})};n.propTypes={label:l.default.string,currentValue:l.default.string.isRequired,options:l.default.arrayOf(l.default.shape({})).isRequired,className:l.default.string.isRequired,renderValue:l.default.func,onChange:l.default.func.isRequired},n.defaultProps={label:"",renderValue:null},exports.SingleSelect=n;
