import { A, useLocation, useNavigate } from '@solidjs/router' import { IconArrowsExchange, IconFileStack, IconGlobe, IconHome, IconMenu, IconNetwork, IconPalette, IconRuler, IconSettings, } from '@tabler/icons-solidjs' import { For, ParentComponent, Show } from 'solid-js' import { themes } from '~/constants' import { setCurTheme, setSelectedEndpoint } from '~/signals' const Nav: ParentComponent<{ href: string; tooltip: string }> = ({ href, tooltip, children, }) => (
  • {children}
  • ) const ThemeSwitcher = () => (
    ) const navs = () => [ { href: '/overview', name: 'Overview', icon: , }, { href: '/proxies', name: 'Proxies', icon: , }, { href: '/rules', name: 'Rules', icon: , }, { href: '/conns', name: 'Connections', icon: , }, { href: '/logs', name: 'Logs', icon: , }, { href: '/config', name: 'Config', icon: , }, ] export const Header = () => { const location = useLocation() const navigate = useNavigate() const onSwitchEndpointClick = () => { setSelectedEndpoint('') navigate('/setup') } return ( ) }