open-vault/website/components/subnav/index.jsx
Bryce Kalow 45dfa2dd02
web: migrate to web platform- packages (#12118)
* migrate usages of nextjs-scripts to platform packages

* Updates hashi packages
2021-07-27 18:43:40 -04:00

38 lines
840 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
hideGithubStars={true}
titleLink={{
text: 'vault',
url: '/',
}}
ctaLinks={[
{
text: 'GitHub',
url: 'https://www.github.com/hashicorp/vault',
},
{
text: 'Try Cloud',
url:
'https://portal.cloud.hashicorp.com/sign-up?utm_source=vault_io&utm_content=top_nav_vault',
},
{
text: 'Download',
url: '/downloads',
},
]}
currentPath={router.asPath}
menuItems={menuItems}
menuItemsAlign="right"
constrainWidth
matchOnBasePath
/>
)
}