main
| 1 | "use server" |
| 2 | |
| 3 | import React from "react" |
| 4 | import type { OpenAPI } from "types" |
| 5 | import Section from "../Section" |
| 6 | import MDXContentServer from "../MDXContent/Server" |
| 7 | |
| 8 | export type DescriptionProps = { |
| 9 | specs: OpenAPI.OpenAPIV3.Document |
| 10 | } |
| 11 | |
| 12 | const Description = ({ specs }: DescriptionProps) => { |
| 13 | return ( |
| 14 | <Section> |
| 15 | <MDXContentServer |
| 16 | content={specs.info.description} |
| 17 | scope={{ |
| 18 | specs, |
| 19 | }} |
| 20 | /> |
| 21 | </Section> |
| 22 | ) |
| 23 | } |
| 24 | |
| 25 | export default Description |