import useValueMap from "../../hooks/useValueMap";
import { renderValueWithMap } from "../../dataSourceForm/utils";
var RadioReadPretty = function RadioReadPretty(props) {
  var value = props.value;
  return renderValueWithMap(value);
};
var RadioGroupReadPretty = function RadioGroupReadPretty(props) {
  var value = props.value,
    options = props.options,
    renderMode = props.renderMode;
  var valueMap = useValueMap(options || []);
  return renderValueWithMap(value, valueMap, renderMode);
};
RadioReadPretty.Group = RadioGroupReadPretty;
export default RadioReadPretty;