import { NavLink } from "react-router"; import { t } from "@/config/i18n"; import "./index.css"; import { Group, Loader } from "@mantine/core"; import { Config } from "@/config/config"; import { useAuth } from "@/services/auth/AuthProvider"; import { useMediaQuery } from "@mantine/hooks"; import { IconHome, IconLogin, IconLogout, IconSettings } from "@tabler/icons-react"; export function Navbar() { const { loggedUser: user, isLoading } = useAuth(); const isPhone = useMediaQuery("(max-width: 760px"); if (!user && isLoading) { return ( ); } return ( ); }