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 (
{name}
Trip dibuat
{trust.tripsCreated}
Rating organizer
{trust.avgRating != null ? `${trust.avgRating} ★` : "—"}
{trust.reviewCount > 0 && (dari {trust.reviewCount} ulasan trip
)}