+ {!provider.isReady() ? (
+
+ {idleCopy}
+
+ ) : query.isLoading ? (
+
Loading…
+ ) : query.isError ? (
+
+ {query.error instanceof Error
+ ? query.error.message
+ : 'Failed to load files'}
+
+ ) : entries.length === 0 ? (
+
+ No files.
+
+ ) : (
+
+ {entries.map((entry) => {
+ const isSelected =
+ selection?.providerId === provider.id &&
+ selection.entryId === entry.id;
+ return (
+
+ );
+ })}
+
+ )}
+
+