'use client'; import Image from 'next/image'; interface AgentCardProps { name: string; title: string; location: string; rating?: number; reviewCount?: number; experience: string; expertise: string[]; imageUrl: string; isVerified?: boolean; isFeatured?: boolean; } export function AgentCard({ name, title, location, rating, reviewCount, experience, expertise, imageUrl, isVerified = false, isFeatured = false, }: AgentCardProps) { return (
{/* Image */}
{name} {isVerified && (
Verified Agent
)}
{/* Content */}

{name}

{title}

{/* Location */}
{location}
{/* Rating */} {rating && (
{[...Array(5)].map((_, i) => ( ))}
{reviewCount && ( ({reviewCount} reviews) )}
)} {/* Expertise Tags */}
{expertise.slice(0, 3).map((tag) => ( {tag} ))}
{/* Experience */}

Experience: {experience}

); }