@@ -4,7 +4,7 @@ import debounce from 'lodash/debounce';
44
55import OutsideClick from '../../../components/OutsideClick/OutsideClick' ;
66import { Col , Grid , Row } from '../../../grid' ;
7- import { HeaderData , ThemedNavigationLogoData } from '../../../models' ;
7+ import { ClassNameProps , HeaderData , ThemedNavigationLogoData } from '../../../models' ;
88import { block } from '../../../utils' ;
99import { getNavigationItemWithIconSize } from '../../utils' ;
1010import DesktopNavigation from '../DesktopNavigation/DesktopNavigation' ;
@@ -14,12 +14,12 @@ import './Navigation.scss';
1414
1515const b = block ( 'navigation' ) ;
1616
17- export interface NavigationProps {
17+ export interface NavigationProps extends ClassNameProps {
1818 logo : ThemedNavigationLogoData ;
1919 data : HeaderData ;
2020}
2121
22- export const Navigation : React . FC < NavigationProps > = ( { data, logo} ) => {
22+ export const Navigation : React . FC < NavigationProps > = ( { data, logo, className } ) => {
2323 const { leftItems, rightItems, iconSize = 20 , withBorder = false } = data ;
2424 const [ isSidebarOpened , setIsSidebarOpened ] = useState ( false ) ;
2525 const [ activeItemId , setActiveItemId ] = useState < string | undefined > ( undefined ) ;
@@ -56,7 +56,7 @@ export const Navigation: React.FC<NavigationProps> = ({data, logo}) => {
5656 } ) ;
5757
5858 return (
59- < Grid className = { b ( { 'with-border' : showBorder } ) } >
59+ < Grid className = { b ( { 'with-border' : showBorder } , className ) } >
6060 < Row >
6161 < Col >
6262 < nav >
0 commit comments