2020-04-06 20:27:35 +00:00
|
|
|
import Subnav from '@hashicorp/react-subnav'
|
|
|
|
import subnavItems from '../../data/subnav'
|
|
|
|
import { useRouter } from 'next/router'
|
|
|
|
|
|
|
|
export default function ConsulSubnav() {
|
|
|
|
const router = useRouter()
|
|
|
|
return (
|
|
|
|
<Subnav
|
2021-02-01 15:24:07 +00:00
|
|
|
hideGithubStars={true}
|
2020-04-06 20:27:35 +00:00
|
|
|
titleLink={{
|
|
|
|
text: 'consul',
|
|
|
|
url: '/',
|
|
|
|
}}
|
|
|
|
ctaLinks={[
|
2021-02-01 15:24:07 +00:00
|
|
|
{
|
|
|
|
text: 'GitHub',
|
|
|
|
url: 'https://www.github.com/hashicorp/consul',
|
|
|
|
},
|
|
|
|
|
2020-04-06 20:27:35 +00:00
|
|
|
{ text: 'Download', url: '/downloads' },
|
2021-02-02 14:09:16 +00:00
|
|
|
{
|
|
|
|
text: 'Try Cloud',
|
|
|
|
url:
|
|
|
|
'https://cloud.hashicorp.com/?utm_source=consul_io&utm_content=top_nav',
|
|
|
|
},
|
2020-04-06 20:27:35 +00:00
|
|
|
]}
|
|
|
|
currentPath={router.pathname}
|
|
|
|
menuItemsAlign="right"
|
|
|
|
menuItems={subnavItems}
|
|
|
|
constrainWidth
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|