import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
import OverflowScroller from "../../../../components/OverflowScroller/OverflowScroller.js";
import { block, isLogoSet } from "../../../../utils/index.js";
import { ItemColumnName, NavigationLayout } from "../../models.js";
import Logo from "../Logo/Logo.js";
import { MobileMenuButton } from "../MobileMenuButton/MobileMenuButton.js";
import { NavigationList } from "../NavigationList/NavigationList.js";
import './DesktopNavigation.css';
const b = block('desktop-navigation');
export const DesktopNavigation = ({ logo, leftItemsWithIconSize, rightItemsWithIconSize, customMobileHeaderItems, isSidebarOpened, onSidebarOpenedChange, onActiveItemChange, activeItemId, }) => (_jsxs("div", { className: b('wrapper'), children: [isLogoSet(logo) && (_jsx("div", { className: b('left'), children: _jsx(Logo, { ...logo, className: b('logo') }) })), _jsx("div", { className: b('navigation-container'), children: _jsx(OverflowScroller, { className: b('navigation'), onScrollStart: onActiveItemChange, children: _jsx(NavigationList, { items: leftItemsWithIconSize, onActiveItemChange: onActiveItemChange, className: b('links'), itemClassName: b('item'), column: ItemColumnName.Left, activeItemId: activeItemId, menuLayout: NavigationLayout.Desktop }) }) }), _jsxs("div", { className: b('right'), children: [customMobileHeaderItems && (_jsx("div", { className: b('mobile-navigation-container'), children: _jsx(OverflowScroller, { className: b('mobile-navigation'), onScrollStart: onActiveItemChange, arrowSize: 18, children: _jsx(NavigationList, { items: customMobileHeaderItems, onActiveItemChange: onActiveItemChange, className: b('mobile-buttons'), itemClassName: b('item'), column: ItemColumnName.Left, activeItemId: activeItemId, menuLayout: NavigationLayout.Dropdown }) }) })), _jsx(MobileMenuButton, { isSidebarOpened: isSidebarOpened, onSidebarOpenedChange: onSidebarOpenedChange }), rightItemsWithIconSize && (_jsx(NavigationList, { onActiveItemChange: onActiveItemChange, column: ItemColumnName.Right, items: rightItemsWithIconSize, activeItemId: activeItemId, className: b('buttons'), itemClassName: b('item'), menuLayout: NavigationLayout.Desktop }))] })] }));
export default DesktopNavigation;
//# sourceMappingURL=DesktopNavigation.js.map
