import dynamic from "next/dynamic" import type { OpenAPIV3 } from "openapi-types" import type { SecurityDescriptionProps } from "./Description" import { Fragment } from "react" const SecurityDescription = dynamic( async () => import("./Description") ) as React.FC type SecurityProps = { specs?: OpenAPIV3.Document } const Security = ({ specs }: SecurityProps) => { return (
{specs && ( <> {Object.values(specs.components?.securitySchemes || {}).map( (securitySchema, index) => ( {!("$ref" in securitySchema) && ( )} ) )} )}
) } export default Security