"use client"; import { useAuth } from "@/context/AuthContext"; export default function DashboardPage() { const { user, isLoading } = useAuth(); if (isLoading) { return (
Loading...
); } if (!user) { return null; } return (

Welcome to your dashboard

Profile

Email: {user.email}
Member since: {new Date(user.created_at).toLocaleDateString()}
User ID: {user.id}
); }