'use client'; import useGlobalStore from '@/config/use-global'; import { buttonVariants } from '@workspace/ui/components/button'; import { useTranslations } from 'next-intl'; import Image from 'next/legacy/image'; import Link from 'next/link'; import LanguageSwitch from './language-switch'; import ThemeSwitch from './theme-switch'; import { UserNav } from './user-nav'; export default function Header() { const t = useTranslations('common'); const { common, user } = useGlobalStore(); const { site } = common; const Logo = ( {site.site_logo && ( logo )} {site.site_name} ); return (
{!user && ( {t('login')} )}
); }