import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/icons'; import { useWindowSize } from '@/hooks/use-window-size'; import { useAppLayoutStore } from '@/stores/app-layout'; import { useDialogsStore } from '@/stores/dialogs'; import { urls } from '../urls'; import { Logo } from './logo'; import { MenuAI } from './menu-ai'; import { MenuUser } from './menu-user'; import { NavigationButton } from './navigation-button'; import { useConceptNavigation } from './navigation-context'; import { ToggleNavigation } from './toggle-navigation'; export function Navigation() { const { push } = useConceptNavigation(); const size = useWindowSize(); const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); const activeDialog = useDialogsStore(state => state.active); const navigateHome = (event: React.MouseEvent) => push({ path: urls.home, newTab: event.ctrlKey || event.metaKey }); const navigateLibrary = (event: React.MouseEvent) => push({ path: urls.library, newTab: event.ctrlKey || event.metaKey }); const navigateHelp = (event: React.MouseEvent) => push({ path: urls.manuals, newTab: event.ctrlKey || event.metaKey }); const navigateCreateNew = (event: React.MouseEvent) => push({ path: urls.create_schema, newTab: event.ctrlKey || event.metaKey }); return ( ); }