import * as React from 'react'; import { OpenAPIV3 } from '@scalar/openapi-types'; import { OpenAPIRootSchema } from './OpenAPISchema'; import { noReference } from './utils'; import { OpenAPIClientContext } from './types'; import { InteractiveSection } from './InteractiveSection'; /** * Display an interactive request body. */ export function OpenAPIRequestBody(props: { requestBody: OpenAPIV3.RequestBodyObject; context: OpenAPIClientContext; }) { const { requestBody, context } = props; return ( { return { key: contentType, label: contentType, body: ( ), }; }, )} /> ); }