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