'use server'; import { getProfile } from '@/lib/actions'; import AvatarDropdown from './AvatarDropdown'; import { SignInSignUp } from '@/components/default/auth'; const NavigationAuth = async () => { try { const profile = await getProfile(); return profile.success ? (
) : ( ); } catch (error) { console.error(`Error getting profile: ${error as string}`); return ; } }; export default NavigationAuth;