You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
consul/website/components/subnav/index.jsx

35 lines
810 B

5 years ago
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
hideGithubStars={true}
5 years ago
titleLink={{
text: 'consul',
url: '/',
}}
ctaLinks={[
{
text: 'GitHub',
url: 'https://www.github.com/hashicorp/consul',
},
5 years ago
{ text: 'Download', url: '/downloads' },
{
text: 'Try Cloud',
url:
'https://cloud.hashicorp.com/?utm_source=consul_io&utm_content=top_nav_consul',
},
5 years ago
]}
currentPath={router.asPath}
5 years ago
menuItemsAlign="right"
menuItems={subnavItems}
constrainWidth
matchOnBasePath
5 years ago
/>
)
}