+
+ {beginMutation.isError ? (
+
+ {errorMessage(beginMutation.error)}
+
+ ) : null}
+
+
+
setInstallationId(event.target.value)}
+ placeholder="From the GitHub redirect (installation_id)"
+ disabled={!state}
+ />
+
+ After authorizing, paste the installation id from the GitHub redirect to finish connecting.
+
+
+ {completeMutation.isError ? (
+
+ {errorMessage(completeMutation.error)}
+
+ ) : null}
+
+
+
+
+ ) : null}
+
+ {step === "select" ? (
+
+
+ setSearch(event.target.value)}
+ onKeyDown={(event) => {
+ if (event.key === "Enter") runSearch();
+ }}
+ placeholder="Search repositories"
+ />
+
+
+
+ {discoverMutation.isError ? (
+
+ {errorMessage(discoverMutation.error)}
+
+ ) : null}
+
+
+ {items.length === 0 && !discoverMutation.isPending ? (
+ - No repositories found.
+ ) : null}
+ {items.map((item) => (
+ -
+
+
+ ))}
+
+
+ {nextCursor ? (
+
+ ) : null}
+
+ {importMutation.isError ? (
+
+ {errorMessage(importMutation.error)}
+
+ ) : null}
+
+
+
+
+
+ ) : null}
+
+ {step === "done" ? (
+