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.
boundary/website/components/subnav/index.jsx

33 lines
768 B

import Subnav from '@hashicorp/react-subnav'
import { useRouter } from 'next/router'
import subnavItems from 'data/navigation'
import { productSlug } from 'data/metadata'
import Link from 'next/link'
export default function ProductSubnav() {
const router = useRouter()
return (
<Subnav
titleLink={{
text: 'Boundary',
url: '/',
}}
ctaLinks={[
{
text: 'GitHub',
url: `https://www.github.com/hashicorp/${productSlug}`,
},
{
text: 'Download',
url: 'https://github.com/hashicorp/boundary/releases',
},
]}
currentPath={router.pathname}
menuItemsAlign="right"
menuItems={subnavItems}
constrainWidth
Link={Link}
/>
)
}