open-vault/website/components/subnav/index.jsx
Jeff Escalante 8af56bd620
Anchor Link Fixes (#8572)
* update anchor link algorithm
* update deps
* update content component
* fix a lot of broken links
2020-03-31 15:21:16 -04:00

31 lines
624 B
JavaScript

import Subnav from '@hashicorp/react-subnav'
import menuItems from '../../data/subnav'
import { useRouter } from 'next/router'
export default function ProductSubnav() {
const router = useRouter()
return (
<Subnav
titleLink={{
text: 'vault',
url: '/'
}}
ctaLinks={[
{
text: 'GitHub',
url: 'https://www.github.com/hashicorp/vault'
},
{
text: 'Download',
url: '/downloads'
}
]}
currentPath={router.pathname}
menuItems={menuItems}
menuItemsAlign="right"
constrainWidth
/>
)
}