"use client"; import { useState } from "react"; import { formatDisplayDate } from "@/lib/dates-client"; type Gap = { date: string; reason: string }; interface CatchUpCardProps { gaps: Gap[]; onSelectDate: (date: string) => void; } const REASON_LABEL: Record = { empty: "No adventure logged", incomplete: "Adventure started but empty", no_reflection: "Reflection missing", }; export function CatchUpCard({ gaps, onSelectDate }: CatchUpCardProps) { const [open, setOpen] = useState(false); if (gaps.length === 0) return null; return (
{open && (

A few recent days could use a note — no pressure, just pick one if you like.

{gaps.map((g) => ( ))}
)}
); }