+ {history.isPending && (
+
Loading history...
+ )}
+ {!history.isPending && !history.isError && versions.length === 0 && (
+
No recorded versions.
+ )}
+ {versions.map((version) => (
+
void downloadVersion(version.version)}
+ onRevert={() => {
+ if (revision)
+ setTarget({ version: version.version, expectedRevision: revision })
+ }}
+ />
+ ))}
+ {history.hasNextPage && (
+ void history.fetchNextPage()}
+ >
+ {history.isFetchingNextPage ? 'Loading...' : 'Load more'}
+
+ )}
+