'use client'; import useGlobalStore from '@/config/use-global'; import { buttonVariants } from '@workspace/ui/components/button'; import { cn } from '@workspace/ui/lib/utils'; 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 { useLoginDialog } from '@/app/auth/LoginDialogContext'; import { UserNav } from '../user-nav'; export default function Header() { const t = useTranslations('common'); const { user } = useGlobalStore(); const Logo = ( logo ); const { openLoginDialog } = useLoginDialog(); return ( <>
{/**/} {!user && ( openLoginDialog()} className={cn( buttonVariants({ size: 'lg', variant: 'outline', }), 'h-full rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] px-5 text-[16px] font-bold text-white transition hover:bg-[#225BA9] hover:text-white sm:px-14 sm:text-2xl', )} > {t('login')} )}
); }