'use client'; import Image from 'next/image'; import { Button } from '@/components/ui/Button'; import { Tag } from './Tag'; interface ProfileHeaderProps { name: string; isVerified: boolean; title: string; location: string; memberSince: string; bio: string; expertise: string[]; } export function ProfileHeader({ name, isVerified, title, location, memberSince, bio, expertise, }: ProfileHeaderProps) { const [firstName, lastName] = name.split(' '); return (
{/* Name and Actions Row */}
{/* Name and Verification */}

{firstName}{' '} {lastName}

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

{title}

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

{bio}

{/* Expertise Tags */}

Expertise:

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