import { useSiteContext } from '@context/SiteContext' import useAuth from '@hooks/useAuth' import { NAV_ROUTES } from '@routes/routes' import { A } from '@solidjs/router' import { IconLogout, IconTriangle } from '@tabler/icons-solidjs' import { For, Show } from 'solid-js' import { Dynamic } from 'solid-js/web' import './navbar.scss' 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 (
) }