import Link from "next/link"; import { formatRupiah, formatDate } from "@/lib/utils"; interface TripCardProps { id: string; title: string; mountain: string; location: string; date: Date | string; price: number; maxParticipants: number; participantCount: number; organizerName: string; status: string; } export function TripCard({ id, title, mountain, location, date, price, maxParticipants, participantCount, organizerName, status, }: TripCardProps) { const spotsLeft = maxParticipants - participantCount; return (
{mountain}