From 92ff1695f56be44bfa91db580c9dc5e1c8de6e6b Mon Sep 17 00:00:00 2001 From: Theodore Weicker Date: Mon, 13 Apr 2026 13:46:48 -0700 Subject: [PATCH] feat: added full admin profile card (dashboard is not done yet, so had to create a test site) --- src/components/AdminProfileCard.tsx | 76 +++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 src/components/AdminProfileCard.tsx diff --git a/src/components/AdminProfileCard.tsx b/src/components/AdminProfileCard.tsx new file mode 100644 index 0000000..ec23390 --- /dev/null +++ b/src/components/AdminProfileCard.tsx @@ -0,0 +1,76 @@ +"use client"; + +import { Box, VStack, HStack, Text, Avatar, Separator } from "@chakra-ui/react"; +import { SignOutButton } from "@clerk/nextjs"; +import { FiUsers, FiLogOut } from "react-icons/fi"; + +type AdminProfileCardProps = { + isOpen: boolean; + onClose: () => void; + name: string; + avatarSrc?: string; +}; + +export default function AdminProfileCard({ isOpen, onClose, name, avatarSrc }: AdminProfileCardProps) { + if (!isOpen) return null; + + return ( + <> + {/* Backdrop */} + + + {/* Card */} + + {/* Profile header */} + + + + + + + + {name} + + + System Admin + + + + + + + {/* Menu items */} + + {/* Account Settings (placeholder) */} + + + + Account Settings + + + + {/* Sign Out */} + + + + + Sign Out + + + + + + + ); +}