'use client'; import { useEffect } from 'react'; import { useAuth } from '@/lib/auth/AuthContext'; import { Box, CircularProgress, Typography } from '@mui/material'; export default function LogoutPage() { const { logout } = useAuth(); useEffect(() => { const performLogout = async () => { await logout(); }; performLogout(); }, [logout]); return ( Logging out... ); }