"use strict";var e=require('./../../../ext-esm/tslib/tslib.es6.js'),r=require("react/jsx-runtime"),a=require("prop-types"),t=require("@material-ui/core");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=u(a),l=function(a){var u=a.options,n=a.currentValue,l=a.defaultValue,o=a.onChange,i=void 0===n?l:n;return r.jsx(t.FormControl,e.__assign({component:"fieldset",margin:"dense",fullWidth:!0},{children:r.jsx(t.RadioGroup,e.__assign({"aria-label":"position",name:"radio_editor",row:!0},{children:u.map((function(e){var a=e.value,u=e.label;return r.jsx(t.FormControlLabel,{onChange:function(){return o(a)},control:r.jsx(t.Radio,{color:"primary",checked:a===i}),label:u},a)}))}))}))},o={options:n.default.arrayOf(n.default.shape({value:n.default.string,label:n.default.string})).isRequired,defaultValue:n.default.oneOfType([n.default.string,n.default.number]).isRequired,currentValue:n.default.oneOfType([n.default.string,n.default.number]),onChange:n.default.func.isRequired};l.propTypes=o,l.defaultProps={currentValue:void 0},module.exports=l;
