import { IconFileStack, IconGlobe, IconHome, IconMenu, IconNetwork, IconPalette, IconRuler, IconSettings, } from '@tabler/icons-solidjs' import type { ParentComponent } from 'solid-js' import { LogoText } from '~/components' import { ROUTES, themes } from '~/constants' import { useI18n } from '~/i18n' import { setCurTheme } from '~/signals' const Nav: ParentComponent<{ href: string; tooltip: string }> = ({ href, tooltip, children, }) => (
  • {children}
  • ) const ThemeSwitcher = () => (
    ) export const Header = () => { const [t] = useI18n() const navs = () => [ { href: ROUTES.Overview, name: t('overview'), icon: , }, { href: ROUTES.Proxies, name: t('proxies'), icon: , }, { href: ROUTES.Rules, name: t('rules'), icon: , }, { href: ROUTES.Conns, name: t('connections'), icon: , }, { href: ROUTES.Log, name: t('logs'), icon: , }, { href: ROUTES.Config, name: t('config'), icon: , }, ] const location = useLocation() const [openedDrawer, setOpenedDrawer] = createSignal(false) return ( ) }