Files
medusa-store/www/apps/api-reference/components/DownloadFull/index.tsx

20 lines
389 B
TypeScript

"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