"use client"; import { motion, useInView } from "framer-motion"; import { useRef } from "react"; import { ItineraryStop } from "@/lib/constants"; interface ItineraryProps { stops: ItineraryStop[]; } function ItineraryStopItem({ stop, index, isLast, }: { stop: ItineraryStop; index: number; isLast: boolean; }) { const ref = useRef(null); const isInView = useInView(ref, { once: true, margin: "-50px" }); return ( {/* Timeline */}
{stop.time.replace(" PM", "").replace(" AM", "").replace("~", "")}
{!isLast && (
)}
{/* Content */}
{stop.time}

{stop.title}

{stop.description}

); } export function Itinerary({ stops }: ItineraryProps) { return (

Your Itinerary

{stops.map((stop, i) => ( ))}
); }