'use client'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { Button } from '@/components/ui/button'; import { LanguageSwitcher } from '@/components/ui/language-switcher'; import { Link } from '@/i18n/navigation'; import { useAuthStore } from '@/lib/auth-store'; import { cn } from '@/lib/utils'; export default function PublicLayout({ children }: { children: React.ReactNode }) { const pathname = usePathname(); const { user } = useAuthStore(); const t = useTranslations(); return (