From 82bc6b860598103af46030d875b82da239dc999d Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Sun, 26 Oct 2025 21:17:06 -0700
Subject: stub profile page

---
 frontend/src/pages/Profile.tsx | 39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 frontend/src/pages/Profile.tsx

(limited to 'frontend/src/pages/Profile.tsx')

diff --git a/frontend/src/pages/Profile.tsx b/frontend/src/pages/Profile.tsx
new file mode 100644
index 0000000..03fef48
--- /dev/null
+++ b/frontend/src/pages/Profile.tsx
@@ -0,0 +1,39 @@
+import { useNavigate } from 'react-router';
+import LoadingDisplay  from "../components/displays/LoadingDisplay";
+import SessionExpiredPopup from "../components/SessionExpiredPopup";
+import { NavBar } from '../components/NavBar';
+import { useAuth } from "../contexts/AuthContext";
+
+
+
+const Profile = () => {
+  const { user, isLoading, logout } = useAuth();
+  const navigate = useNavigate();
+
+  if (isLoading) {
+    return <LoadingDisplay message="Loading Profile Page..." />;
+  }
+
+  const handleLogout = async () => {
+    try {
+      await logout();
+      navigate("/");
+    } catch (error) {
+      console.error("Logout failed:", error);
+      alert("Network error during logout. Please try again.");
+    }
+  };
+
+  if (!user) {
+    return <SessionExpiredPopup />;
+  }
+
+  return (
+    <div className="min-h-screen bg-slate-950">
+      <NavBar user={user} handleLogout={handleLogout} currentPage="import"/>
+      <h1>Profile</h1>
+    </div>
+  );
+};
+
+export default Profile;
-- 
cgit v1.2.3

