'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { useTranslations } from 'next-intl'; import { LogIn, LogOut, ShieldCheck, User as UserIcon } from 'lucide-react'; import { useAuth } from '@/lib/auth-context'; import { LanguageSwitcher } from './LanguageSwitcher'; import { ModelSelector } from './ModelSelector'; const PROTECTED_NAV = [ { href: '/dashboard', key: 'dashboard' }, { href: '/inspect/new', key: 'newInspection' }, { href: '/history', key: 'history' }, ] as const; export function Header() { const t = useTranslations('nav'); const tAuth = useTranslations('auth'); const tCommon = useTranslations('common'); const pathname = usePathname(); const { user, isAuthenticated, isAdmin, logout, loading } = useAuth(); const hideOnAuthPages = pathname?.startsWith('/login') || pathname?.startsWith('/register'); return (
Hasarİ MVP
); }