import { useRouter } from 'next/router' import PlanTimeline from '../src/components/PlanTimeline' const PlanDetails = () => { const router = useRouter() const { planId } = router.query // If the planId is not available yet (still loading), show a loading state if (!planId) { return (