@@ -4,7 +4,7 @@ import Hamburger from '@heroicons/react/24/solid/Bars3Icon';
44import XMark from '@heroicons/react/24/solid/XMarkIcon' ;
55import * as Label from '@radix-ui/react-label' ;
66import { useState } from 'react' ;
7- import type { FC , ComponentProps } from 'react' ;
7+ import type { FC , ComponentProps , HTMLAttributeAnchorTarget } from 'react' ;
88
99import LanguageDropdown from '@/components/Common/LanguageDropDown' ;
1010import { SearchButton } from '@/components/Common/Search' ;
@@ -24,7 +24,11 @@ const navInteractionIcons = {
2424} ;
2525
2626type NavbarProps = {
27- navItems : Array < { text : FormattedMessage ; link : string } > ;
27+ navItems : Array < {
28+ text : FormattedMessage ;
29+ link : string ;
30+ target ?: HTMLAttributeAnchorTarget | undefined ;
31+ } > ;
2832 languages : ComponentProps < typeof LanguageDropdown > ;
2933 onThemeTogglerClick : ( ) => void ;
3034} ;
@@ -57,8 +61,8 @@ const NavBar: FC<NavbarProps> = ({
5761
5862 < div className = { `${ style . main } peer-checked:flex` } >
5963 < div className = { style . navItems } >
60- { navItems . map ( ( { text, link } ) => (
61- < NavItem key = { link } href = { link } >
64+ { navItems . map ( ( { text, link, target } ) => (
65+ < NavItem key = { link } href = { link } target = { target } >
6266 { text }
6367 </ NavItem >
6468 ) ) }
0 commit comments