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 (
{name}
Trip selesai
{trust.tripsCompleted}
{trust.tripsCreated > trust.tripsCompleted && (+ {trust.tripsCreated - trust.tripsCompleted} berjalan
)}Peserta dilayani
{trust.totalParticipantsServed}
Rating organizer
{trust.avgRating != null ? (
<>
{trust.avgRating}
dari {trust.reviewCount} ulasan trip
)}