import type { ReactNode } from "react"; import Link from "next/link"; import { formatDateRange } from "@/lib/utils"; interface ProfileTripRowProps { href: string; title: string; mountain: string; date: Date; endDate: Date | null; rightSlot?: ReactNode; } export function ProfileTripRow({ href, title, mountain, date, endDate, rightSlot, }: ProfileTripRowProps) { return (
{title}
{mountain}
{formatDateRange(date, endDate)}