import type { ReactNode } from "react"; import Link from "next/link"; import { formatTripCalendarDateRangeLong } from "@/lib/trip-dates"; interface ProfileTripRowProps { href: string; title: string; destination: string; date: Date; endDate: Date | null; rightSlot?: ReactNode; } export function ProfileTripRow({ href, title, destination, date, endDate, rightSlot, }: ProfileTripRowProps) { return (
{title}
{destination}
{formatTripCalendarDateRangeLong(date, endDate)}
{rightSlot && (