'use client'; import Image from 'next/image'; import Link from 'next/link'; import { Tag } from './Tag'; interface ProfileCardProps { firstName: string; lastName: string; isVerified: boolean; title: string; location: string; memberSince: string; bio: string; expertise: string[]; showEditButton?: boolean; editHref?: string; messageHref?: string; requestsHref?: string; } export function ProfileCard({ firstName, lastName, isVerified, title, location, memberSince, bio, expertise, showEditButton = false, editHref = '/agent/edit', messageHref, requestsHref, }: ProfileCardProps) { return (
{/* Name and Actions Row */}

{firstName}{' '} {lastName}

{isVerified && ( <> Verified (Verified Expert) )} {showEditButton && ( Edit profile )}

{title}

Location {location} Calendar Member Since {memberSince}
{/* Action Buttons */}
{messageHref ? ( Message Message ) : ( )} {requestsHref ? ( Connect {showEditButton ? 'Requests' : 'Connect'} ) : ( )}
{/* Bio */}

{bio}

{/* Expertise Tags */}

Expertise:

{expertise.map((tag, idx) => ( {tag} ))}
); }