// import { styled } from 'solid-styled-components' import { useSiteContext } from '@context/SiteContext' import useAuth from '@hooks/useAuth' import useLanguage from '@hooks/useLanguage' import { A } from '@solidjs/router' import { IconDashboard, IconLogout, IconTriangle } from '@tabler/icons-solidjs' import { For, Show } from 'solid-js' import { Dynamic } from 'solid-js/web' const language = useLanguage('vi') const NAVBAR_ITEM = [ { path: '/dashboard', icon: IconDashboard, text: language?.ui.dashboard, }, ] export default function Navbar() { const { store, setAuth } = useSiteContext() const { clickLogOut } = useAuth(setAuth) const logOut = async () => { try { await clickLogOut() } catch (error) { console.log({ status: 'danger', title: 'Logout fail!', closable: false, }) } } return (