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

28 lines
657 B

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