feat(medusa-oas-cli,oas-github-ci): new options + added download of OAS in api reference (#5453)
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
"use client"
|
||||
|
||||
import { Button } from "docs-ui"
|
||||
import { useArea } from "../../providers/area"
|
||||
import Link from "next/link"
|
||||
|
||||
const DownloadFull = () => {
|
||||
const { area } = useArea()
|
||||
|
||||
return (
|
||||
<Button variant="secondary">
|
||||
<Link href={`/api/download/${area}`} download target="_blank">
|
||||
Download openapi.yaml
|
||||
</Link>
|
||||
</Button>
|
||||
)
|
||||
}
|
||||
|
||||
export default DownloadFull
|
||||
Reference in New Issue
Block a user