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
|
|
|
|
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
|
|
|
},
|
|
|
|
{
|
|
|
|
text: 'Download',
|
2020-07-02 18:24:34 +00:00
|
|
|
url: '/downloads',
|
|
|
|
},
|
2020-03-13 17:00:18 +00:00
|
|
|
]}
|
|
|
|
currentPath={router.pathname}
|
|
|
|
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
|
|
|
}
|