import React, { Component } from "react" import PropTypes from "prop-types" import { OAS3ComponentWrapFactory } from "../helpers" class ModelComponent extends Component { static propTypes = { schema: PropTypes.object.isRequired, name: PropTypes.string, getComponent: PropTypes.func.isRequired, getConfigs: PropTypes.func.isRequired, specSelectors: PropTypes.object.isRequired, expandDepth: PropTypes.number, includeReadOnly: PropTypes.bool, includeWriteOnly: PropTypes.bool, Ori: PropTypes.func.isRequired, } render(){ let { getConfigs, schema, Ori: Model } = this.props let classes = ["model-box"] let isDeprecated = schema.get("deprecated") === true let message = null if(isDeprecated) { classes.push("deprecated") message = Deprecated: } return
{message}
} } export default OAS3ComponentWrapFactory(ModelComponent)