Files
medusa-store/www/apps/api-reference/components/DownloadFull/index.tsx
Shahed Nasser 4c89f91caf docs: fix download button + other fixes (#8032)
- Fix text of download button
- Small fix to styling on small devies
- Fix mobile sidebar items using incorrect base url
2024-07-09 12:36:02 +00:00

24 lines
464 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={`${process.env.NEXT_PUBLIC_BASE_PATH}/download/${area}`}
download
target="_blank"
>
Download OpenApi Specs Collection
</Link>
</Button>
)
}
export default DownloadFull