open-nomad/website/components/subnav/index.jsx
2020-03-25 17:01:29 -07:00

24 lines
571 B
JavaScript

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