+
+ {selected === null ? (
+
+ Live
+ — drag the bar to rewind
+
+ ) : (
+
+
+ {format(new Date(selected.createdAt), 'MMM d, HH:mm')}
+
+
+ {' '}
+ — {selected.numClients} clients
+ {!stale && snapshot !== null && ` on ${snapshot.map.name}`}
+
+
+ )}
+
+ {selected !== null && (
+
+ )}
+
+
+
+
+
+
+
+
setSelectedIndex(Number(event.target.value))}
+ aria-label="Rewind to a past snapshot"
+ className="absolute inset-0 w-full h-full opacity-0 cursor-ew-resize"
+ />
+
+
+
+
+ {format(new Date(snapshots[0].createdAt), 'MMM d, HH:mm')}
+
+ now
+
+
+
+ {selected === null ? (
+ children
+ ) : snapshot === null ? (
+