"use client"; import React from "react"; import { useAuth, withAuth } from "../hooks/useAuth"; function ProfilePage() { const { user, logout } = useAuth(); const handleLogout = () => { logout(); }; return (

Profile Information

{user?.id}

{user?.email && (

{user.email}

)} {user?.user_metadata && Object.keys(user.user_metadata).length > 0 && (
                      {JSON.stringify(user.user_metadata, null, 2)}
                    
)}
); } export default withAuth(ProfilePage);