createOnlyOAS31ComponentWrapper =
  (Component) => (Original, system) => (props) => {
    if (system.specSelectors.isOAS31()) {
      return (
        <Component
          {...props}
          originalComponent={Original}
          getSystem={system.getSystem}
        />
      )
    }

    return <Original {...props} />
  }
Creates component wrapper that only wraps the component
when spec is OpenAPI 3.1.0. Otherwise, returns original
component with passed props.

@param Component
@returns {function(*, *): function(*): *}