import Image from "next/image"; import type { OrganizerTrust } from "@/server/services/trust.service"; interface OrganizerTrustPanelProps { name: string; image: string | null; trust: OrganizerTrust; } export function OrganizerTrustPanel({ name, image, trust, }: OrganizerTrustPanelProps) { return (

Organizer & kepercayaan

{image ? ( ) : (
{name.charAt(0).toUpperCase()}
)}

{name}

{trust.isVerified && ( ✅ Verified Organizer )} {trust.isTripLeader && ( Trip leader )}

Trip dibuat

{trust.tripsCreated}

Rating organizer

{trust.avgRating != null ? `${trust.avgRating} ★` : "—"}

{trust.reviewCount > 0 && (

dari {trust.reviewCount} ulasan trip

)}
); }