import React from "react" import PropTypes from "prop-types" import ImPropTypes from "react-immutable-proptypes" import { OrderedMap } from "immutable" const RequestBody = ({ requestBody, getComponent, getConfigs, specSelectors, contentType, isExecute, onChange }) => { const Markdown = getComponent("Markdown") const ModelExample = getComponent("modelExample") const RequestBodyEditor = getComponent("RequestBodyEditor") const requestBodyDescription = (requestBody && requestBody.get("description")) || null const requestBodyContent = (requestBody && requestBody.get("content")) || new OrderedMap() contentType = contentType || requestBodyContent.keySeq().first() const mediaTypeValue = requestBodyContent.get(contentType) return