@@ -79,10 +80,12 @@ export function Header() {
align="end"
className="w-max bg-card border-border shadow-md"
>
-
-
- Menu Profil
-
+
+
+
+ Menu Profil
+
+
diff --git a/src/components/dashboards/ProfileClient.tsx b/src/components/dashboards/ProfileClient.tsx
new file mode 100644
index 0000000..6360b33
--- /dev/null
+++ b/src/components/dashboards/ProfileClient.tsx
@@ -0,0 +1,89 @@
+"use client";
+import Image from "next/image";
+import { Button } from "../ui/button";
+import { ArrowLeft, Pencil } from "lucide-react";
+import { Separator } from "../ui/separator";
+import { useSession } from "next-auth/react";
+import { UserGender } from "@prisma/client";
+import Link from "next/link";
+import { motion } from "framer-motion";
+
+interface ProfileClientProps {
+ gender?: UserGender;
+ productReference?: string;
+}
+
+export default function ProfileClient({
+ gender,
+ productReference,
+}: ProfileClientProps) {
+ const session = useSession();
+
+ return (
+
+
+
+ Back to Dashboard
+
+
+
+
+
+
+
+
+ {session?.data?.user?.name || "Guest"}
+
+
+ {session?.data?.user?.email || "Not logged in"}
+
+
+
+
+
+
+
+
+
+
+
+
Gender
+
{gender || "Not specified"}
+
+
+
+
Product Preference
+
{productReference || "None"}
+
+
+
+
+ );
+}