import { useI18n } from '@solid-primitives/i18n'
import { A, useLocation } from '@solidjs/router'
import {
IconFileStack,
IconGlobe,
IconHome,
IconMenu,
IconNetwork,
IconPalette,
IconRuler,
IconSettings,
} from '@tabler/icons-solidjs'
import { For, ParentComponent, Show, createSignal } from 'solid-js'
import { twMerge } from 'tailwind-merge'
import { ROUTES, themes } from '~/constants'
import { setCurTheme } from '~/signals'
const Nav: ParentComponent<{ href: string; tooltip: string }> = ({
href,
tooltip,
children,
}) => (
{children}
)
const ThemeSwitcher = () => (
)
const LogoText = () => (
metacube,
xd
)
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 (
)
}