"use client"; import { useAuth } from "../contexts/AuthContext"; export default function AuthStatus() { const { isAuthenticated, user, login, logout, loading } = useAuth(); if (loading) { return (

Loading authentication status...

); } return (
{isAuthenticated ? ( <>

Authenticated ✅

{user && (

Name: {user.name || "N/A"}

Email: {user.email || "N/A"}

)} ) : (

Not authenticated ❌

)}
{isAuthenticated ? ( ) : ( )}
); }