import { useState } from "react"; import { Mail, Building2, Upload, CheckCircle, AlertCircle } from "lucide-react"; import { Button } from "@/components/ui/button"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar"; import { Card, CardContent, CardDescription, CardHeader, CardTitle } from "@/components/ui/card"; import { Badge } from "@/components/ui/badge"; export default function ProfilePage() { const [name, setName] = useState("John Doe"); const [isEditing, setIsEditing] = useState(false); // Mock user data const user = { name: "John Doe", email: "john@example.com", emailVerified: true, avatar: null, initials: "JD", organizations: [ { name: "Acme Corp", role: "Admin" }, { name: "Beta Inc", role: "Member" }, ], }; const handleSave = () => { setIsEditing(false); // Save logic here }; return (

Profile

Manage your personal information and organization memberships

{/* Profile Photo & Name */} Personal Information Update your photo and personal details {/* Avatar */}
{user.initials}

JPG, PNG or GIF. Max 2MB.

{/* Name */}
{isEditing ? (
setName(e.target.value)} />
) : (
{user.name}
)}
{/* Email */} Email Address Your email is used for login and notifications
{user.email} {user.emailVerified ? ( Verified ) : ( Unverified )}
{/* Organizations */} Organizations Organizations you're a member of
{user.organizations.map((org, index) => (
{org.name}
{org.role}
))}
); }