'use client'; import { useSession } from 'next-auth/react'; import Image from 'next/image'; import { useState } from 'react'; import { Button } from '@/components/ui/Button'; // Mock agent data - in production, this would come from API const agentData = { name: 'Brian Neeland', isVerified: true, title: 'Licensed Real Estate Agent', location: 'Colorado', memberSince: 'March 2020', bio: 'Brian brings eight years of hands-on experience helping clients confidently buy, sell, and invest in real estate. He combines strong analytical skills with deep market knowledge to identify the right opportunities and guide clients through every step of the process. With a data-driven approach and clear communication, Brian ensures smooth transactions and informed decisions tailored to each client\'s goals.', expertise: ['Buyers', 'Sellers', 'Divorce', 'Luxury', 'Retirement', 'Historical', 'condo', 'Rural', 'FHA', 'Conventional', 'USDA', 'Retirement'], email: 'brian@gmail.com', phone: '+91*******7493', profileImage: '/assets/agent-placeholder.jpg', experience: { years: '10+ years', contracts: '10+ Contracts', licensingAreas: ['Colorado Springs', 'Monument', 'Falcon', 'Castle Rock', 'Fountain', 'Momentum'], expertiseYears: [ { area: 'Colorado', years: '10 yrs' }, { area: 'Falcon', years: '10 yrs' }, { area: 'Colorado', years: '10 yrs' }, { area: 'Colorado', years: '10 yrs' }, ], certifications: [ { name: 'Certified Residential Specialist (CRS)', org: 'RESIDENTIAL REAL ESTATE COUNCIL' }, { name: 'Certified Residential Specialist (CRS)', org: 'RESIDENTIAL REAL ESTATE COUNCIL' }, ], }, availability: { type: 'Full-time', days: ['Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'], }, preferredWorkEnvironment: 'Preferred work environment includes on-site property visits, in-depth market research, client consultations, property tours, and active involvement in negotiations to ensure the best outcomes', testimonialHighlight: "The most amazing experience I've had as a real estate professional is helping a family secure their dream home and seeing their happiness when they received the keys.", specialization: { types: ['Buyers', 'Sellers', 'First time Buyers', 'First time Sellers', 'Divorce'], loanTypes: ['Conventional', 'FHA', 'VA', 'USDA'], propertyTypes: ['SFR', 'Town home', 'Rural', 'Luxury', 'Condo'], hobbies: ['Boating', 'Horses', 'RV', 'Automotive', 'Aviation'], pricePoints: ['Under $100K', '$100K – $300K', '$300K – $500K', '$500K – $1M', '$1M and above'], }, testimonials: [ { id: 1, text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean commodo ligula eget dolor. Sed dignissim, nisleget tincidunt vulputate, lacus justo bibendum ipsum, vitae tempus risus lorem at nunc.', author: 'Kennedy Kenney', role: 'Chief Operations Officer', rating: 5, }, { id: 2, text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean commodo ligula eget dolor. Sed dignissim, nisleget tincidunt vulputate, lacus justo bibendum ipsum, vitae tempus risus lorem at nunc.', author: 'Kennedy Kenney', role: 'Chief Operations Officer', rating: 5, }, { id: 3, text: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean commodo ligula eget dolor. Sed dignissim, nisleget tincidunt vulputate, lacus justo bibendum ipsum, vitae tempus risus lorem at nunc.', author: 'Kennedy Kenney', role: 'Chief Operations Officer', rating: 5, }, ], }; // Star Rating Component function StarRating({ rating }: { rating: number }) { return (
{[1, 2, 3, 4, 5].map((star) => ( {star ))}
); } // Tag Component function Tag({ children, variant = 'default' }: { children: React.ReactNode; variant?: 'default' | 'light' | 'orange' }) { return ( {children} ); } // Specialization Card Component function SpecializationCard({ title, items, icon, }: { title: string; items: string[]; icon: React.ReactNode; }) { return (
{icon}

{title}

{items.map((item, idx) => (

{item}

))}
); } // Info Card Component function InfoCard({ title, content, icon, }: { title: string; content: React.ReactNode; icon: React.ReactNode; }) { return (
{icon}
{title &&

{title}

}
{content}
); } export default function AgentDashboard() { const { data: session } = useSession(); return (
{/* Main Profile Section with Left Sidebar */}
{/* Left Sidebar - Status & Contact */}
{/* Profile Image */}
{/* Profile Image */}
Profile
{/* Edit Icon - Top Right Outside */}
{/* Status Buttons */}
Available.
Unavailable.
{/* Contact Info */}
Email: *****brian@gmail.com
Ph.No: {agentData.phone}
{/* Right Content - Profile Info */}
{/* Profile Header Card */}
{/* Name and Actions Row */}
{/* Name and Verification */}

{agentData.name.split(' ')[0]}{' '} {agentData.name.split(' ')[1]}

{agentData.isVerified && ( <> Verified (Verified Expert) )}
{/* Title */}

{agentData.title}

{/* Location and Member Since */}
Location {agentData.location} Calendar Member Since {agentData.memberSince}
{/* Action Buttons */}
{/* Bio */}

{agentData.bio}

{/* Expertise Tags */}

Expertise:

{agentData.expertise.map((tag, idx) => ( {tag} ))}
{/* Experience Section */}

Experience

{/* Left Column */}

Years in Experience

  • {agentData.experience.years}

Number of contract coised

  • {agentData.experience.contracts}

Licensing & Areas

{agentData.experience.licensingAreas.slice(0, 5).map((area, idx) => ( {area} ))} {agentData.experience.licensingAreas.length > 5 && ( +{agentData.experience.licensingAreas.length - 5} More )}
{/* Divider */}
{/* Right Column */}

Areas in expertise & Years

{agentData.experience.expertiseYears.slice(0, 3).map((item, idx) => ( {item.area} – {item.years} ))} {agentData.experience.expertiseYears.length > 3 && ( +{agentData.experience.expertiseYears.length - 3}More )}

Certifications

    {agentData.experience.certifications.map((cert, idx) => (
  • • {cert.name}

    {cert.org}

  • ))}
{/* Info Cards Section */}
} content={

{agentData.availability.type}

{agentData.availability.days.map((day) => (

{day}

))}
} /> } content={

{agentData.preferredWorkEnvironment}

} /> } content={

“{agentData.testimonialHighlight}”

} />
{/* Specialization Section - Light Gray Background */}

Specialization

Area Of Expertise and Focus

} /> } /> } />
} /> } />
{/* Testimonials Section */}

Testimonials

Clients rate our real estate services 4.9 out of 5 on average, based on recent client reviews.

{agentData.testimonials.map((testimonial) => (

I have been working with Lorem .

{testimonial.text}

User

{testimonial.author}

{testimonial.role}

))}
); }