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