import Image from "next/image"; import Link from "next/link"; import { vibeMeta } from "@/lib/vibe"; import type { Vibe } from "@/app/generated/prisma/enums"; interface UserCardProps { id: string; name: string; image: string | null; isVerifiedOrganizer: boolean; profile: { bio: string | null; city: string | null; interests: string[]; vibe: Vibe | null; } | null; } export function UserCard({ id, name, image, isVerifiedOrganizer, profile, }: UserCardProps) { const interests = profile?.interests ?? []; return (
{name}
{profile?.city && (📍 {profile.city}
)}{profile.bio}
)} {interests.length > 0 && (