+ {hours.map((hour) => {
+ const topPercent = ((hour - startHour) / totalHours) * 100;
+ const label = new Intl.DateTimeFormat("en-US", {
+ hour: "numeric",
+ hour12: true,
+ }).format(new Date(2000, 0, 1, hour));
+
+ return (
+
+
+ {hour === startHour ? "" : label}
+
+
+
+ );
+ })}
+
+ {events.map((event) => (
+
+ ))}
+
+ {showCurrentTime && (
+
+ )}
+