import clsx from 'clsx'; import { IconLibrary2, IconManuals, IconNewItem2 } from '@/components/Icons'; import { useWindowSize } from '@/hooks/useWindowSize'; import { useAppLayoutStore } from '@/stores/appLayout'; import { PARAMETER } from '@/utils/constants'; import { urls } from '../urls'; import { Logo } from './Logo'; import { NavigationButton } from './NavigationButton'; import { useConceptNavigation } from './NavigationContext'; import { ToggleNavigation } from './ToggleNavigation'; import { UserMenu } from './UserMenu'; export function Navigation() { const router = useConceptNavigation(); const size = useWindowSize(); const noNavigationAnimation = useAppLayoutStore(state => state.noNavigationAnimation); const navigateHome = (event: React.MouseEvent) => router.push({ path: urls.home, newTab: event.ctrlKey || event.metaKey }); const navigateLibrary = (event: React.MouseEvent) => router.push({ path: urls.library, newTab: event.ctrlKey || event.metaKey }); const navigateHelp = (event: React.MouseEvent) => router.push({ path: urls.manuals, newTab: event.ctrlKey || event.metaKey }); const navigateCreateNew = (event: React.MouseEvent) => router.push({ path: urls.create_schema, newTab: event.ctrlKey || event.metaKey }); return ( ); }