* chore(website): adds ts config, upgrades deps * chore: adjust ts config option * chore: upgrade deps * fix: subnav active path routing * style(home): update integrations bg color * chore: upgrade deps * style: fix body copy color * style: fix product downloads page height * feat: updates favicon * chore(downloads): upgrade to prerelease * chore: upgrades product download page to stable * chore: update favicon.ico
24 lines
566 B
JavaScript
24 lines
566 B
JavaScript
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.asPath}
|
|
menuItemsAlign="right"
|
|
menuItems={subnavItems}
|
|
constrainWidth
|
|
/>
|
|
)
|
|
}
|