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:
|
2021-06-24 14:02:26 +00:00
|
|
|
'https://cloud.hashicorp.com/?utm_source=consul_io&utm_content=top_nav_consul',
|
2021-02-02 14:09:16 +00:00
|
|
|
},
|
2020-04-06 20:27:35 +00:00
|
|
|
]}
|
2021-05-03 19:01:36 +00:00
|
|
|
currentPath={router.asPath}
|
2020-04-06 20:27:35 +00:00
|
|
|
menuItemsAlign="right"
|
|
|
|
menuItems={subnavItems}
|
|
|
|
constrainWidth
|
2021-07-26 14:26:50 +00:00
|
|
|
matchOnBasePath
|
2020-04-06 20:27:35 +00:00
|
|
|
/>
|
|
|
|
)
|
|
|
|
}
|