import { A, useLocation } from '@solidjs/router'
import {
IconFileStack,
IconGlobe,
IconHome,
IconLanguage,
IconMenu,
IconNetwork,
IconPalette,
IconRuler,
IconSettings,
} from '@tabler/icons-solidjs'
import { For, ParentComponent, Show, createSignal } from 'solid-js'
import { Button, LogoText } from '~/components'
import { LANG, 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, locale } = 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 (
)
}