- {/* Header */}
-
- Due Date
-
-
- {/* Current date display */}
- {dateObj && (
-
-
- {format(dateObj, "MMM d, yyyy")}
-
-
- {overdue
- ? `overdue by ${formatDistanceToNow(dateObj)}`
- : isToday(dateObj)
- ? "today"
- : `in ${formatDistanceToNow(dateObj)}`}
-
-
- )}
-
- {/* Date input + clear */}
-
-
+ {/* Header with clear button */}
+
+
+ Due Date
+
{dueDate && (
-
+
+
)}
+
+ {/* Clickable date display -> opens calendar */}
+
+
+
);
}