'use client';
import Link from 'next/link';
import LanguageSwitcher from '../header/LanguageSwitcher';
import { getStoredLocale } from '@/lib/getLocale';

export default function AuthHeader() {
  const locale = getStoredLocale();
  
  return (
    <div className='flex fixed py-3 lg:py-0 max-lg:px-6 bg-BlueZodiac lg:bg-transparent z-10 top-0 lg:absolute lg:top-3 lg:right-0 w-full items-center justify-between max-w-full lg:max-w-2xl rtl:right-auto rtl:left-0 max-lg:dark:bg-darkbg'>              
        <Link href='/' className="text-2xl font-bold opacity-100 lg:opacity-0">Kanzy</Link>
        <div className=''>

          <LanguageSwitcher  locale={locale} textColor="text-white"/>
        </div>
    </div>
  );
}
