- Fix text of download button - Small fix to styling on small devies - Fix mobile sidebar items using incorrect base url
24 lines
464 B
TypeScript
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
|