import Image from "next/image"; import { BadgeCheck, Star } from "lucide-react"; 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 selesai

{trust.tripsCompleted}

{trust.tripsCreated > trust.tripsCompleted && (

+ {trust.tripsCreated - trust.tripsCompleted} berjalan

)}

Peserta dilayani

{trust.totalParticipantsServed}

Rating organizer

{trust.avgRating != null ? ( <> {trust.avgRating} ) : ( "—" )}

{trust.reviewCount > 0 && (

dari {trust.reviewCount} ulasan trip

)}
); }