github.com/adityamillind98/nomad@v0.11.8/website/components/subnav/index.jsx (about) 1 import Subnav from '@hashicorp/react-subnav' 2 import subnavItems from '../../data/subnav' 3 import { useRouter } from 'next/router' 4 5 export default function NomadSubnav() { 6 const router = useRouter() 7 return ( 8 <Subnav 9 titleLink={{ 10 text: 'nomad', 11 url: '/', 12 }} 13 ctaLinks={[ 14 { text: 'GitHub', url: 'https://www.github.com/hashicorp/nomad' }, 15 { text: 'Download', url: '/downloads' }, 16 ]} 17 currentPath={router.pathname} 18 menuItemsAlign="right" 19 menuItems={subnavItems} 20 constrainWidth 21 /> 22 ) 23 }