2020-03-13 17:00:18 +00:00
|
|
|
import Subnav from '@hashicorp/react-subnav'
|
2020-07-02 18:24:34 +00:00
|
|
|
import menuItems from 'data/subnav'
|
2020-03-13 17:00:18 +00:00
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
|
|
|
|
export default function ProductSubnav() {
|
|
|
|
const router = useRouter()
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Subnav
|
2021-02-02 16:41:19 +00:00
|
|
|
hideGithubStars={true}
|
2020-03-13 17:00:18 +00:00
|
|
|
titleLink={{
|
|
|
|
text: 'vault',
|
2020-07-02 18:24:34 +00:00
|
|
|
url: '/',
|
2020-03-13 17:00:18 +00:00
|
|
|
}}
|
|
|
|
ctaLinks={[
|
|
|
|
{
|
|
|
|
text: 'GitHub',
|
2020-08-11 21:06:23 +00:00
|
|
|
url: 'https://www.github.com/hashicorp/vault',
|
2020-03-13 17:00:18 +00:00
|
|
|
},
|
2021-02-02 16:41:19 +00:00
|
|
|
{
|
|
|
|
text: 'Try Cloud',
|
|
|
|
url:
|
2021-05-05 14:44:32 +00:00
|
|
|
'https://portal.cloud.hashicorp.com/sign-up?utm_source=vault_io&utm_content=top_nav',
|
2021-02-02 16:41:19 +00:00
|
|
|
},
|
2020-03-13 17:00:18 +00:00
|
|
|
{
|
|
|
|
text: 'Download',
|
2020-07-02 18:24:34 +00:00
|
|
|
url: '/downloads',
|
|
|
|
},
|
2020-03-13 17:00:18 +00:00
|
|
|
]}
|
2021-05-03 22:01:29 +00:00
|
|
|
currentPath={router.asPath}
|
2020-03-13 17:00:18 +00:00
|
|
|
menuItems={menuItems}
|
|
|
|
menuItemsAlign="right"
|
2020-03-31 19:21:16 +00:00
|
|
|
constrainWidth
|
2020-03-13 17:00:18 +00:00
|
|
|
/>
|
|
|
|
)
|
2020-01-18 00:18:09 +00:00
|
|
|
}
|