import PATHS from '#core/constants/paths'; import { Link } from '@inertiajs/react'; import { route } from '@izzyjs/route/client'; import { Box, Burger, Button, Divider, Drawer, Group, Image, ScrollArea, rem, } from '@mantine/core'; import { useDisclosure } from '@mantine/hooks'; import { useTranslation } from 'react-i18next'; import ExternalLink from '~/components/common/external_link'; import { MantineLanguageSwitcher } from '~/components/common/language_switcher'; import { MantineThemeSwitcher } from '~/components/common/theme_switcher'; import useUser from '~/hooks/use_user'; import classes from './mobile.module.css'; export default function Navbar() { const { t } = useTranslation('common'); const { isAuthenticated } = useUser(); const [drawerOpened, { toggle: toggleDrawer, close: closeDrawer }] = useDisclosure(false); return (
MyLinks's logo {t('home')} Github Extension {!isAuthenticated ? ( ) : ( )}
{t('home')} Github Extension {!isAuthenticated ? ( ) : ( )}
); }