+ {loadingDetail ? (
+
+ ) : selected ? (
+ <>
+
+ {selectedConnected ? (
+
+
+ Connected
+
+ ) : null}
+ {selected.recommended ? (
+
+
+ Popular
+
+ ) : null}
+
+ {providerActionCount(selected)} actions
+
+ {selected.homepageUrl ? (
+
+ Website
+
+
+ ) : null}
+
+
+ {selectedActions.length > 0 ? (
+
+
+
+
+ Actions
+
+
+ {selectedActions.length}
+
+
+
+ {selectedActions.map((action, index) => (
+
+
+ {actionLabel(action)}
+
+ {action.id && action.id !== action.name ? (
+
+ {action.id}
+
+ ) : null}
+ {action.description ? (
+
+ {action.description}
+
+ ) : null}
+
+ ))}
+
+
+ ) : null}
+
+ {authOptions.length > 1 ? (
+
+
+ Authentication
+
+
+ {authOptions.map((auth) => (
+ {
+ setSelectedAuthType(auth.type);
+ setValues({});
+ setFormError(null);
+ }}
+ className={`rounded-lg border border-solid px-3 py-1.5 text-label-sm transition-colors ${
+ selectedAuthType === auth.type
+ ? 'border-ds-border-brand-default-default bg-ds-bg-brand-default-default text-ds-text-brand-inverse-default'
+ : 'border-ds-border-neutral-default-default bg-ds-bg-neutral-default-default text-ds-text-neutral-default-default hover:bg-ds-bg-neutral-subtle-default'
+ }`}
+ >
+ {authLabel(auth.type)}
+
+ ))}
+
+
+ ) : null}
+
+ {selectedAuth?.type === 'oauth2' ? (
+
+
+ Connect with OAuth
+
+ Eigent will open the provider authorization page through
+ Connector Gateway. After authorization completes, refresh
+ this connector to see the connected account.
+ {selectedAuth.scopes?.length ? (
+
+ Scopes: {selectedAuth.scopes.join(', ')}
+
+ ) : null}
+
+ ) : selectedAuth?.type === 'no_auth' ? (
+
+
+ This connector does not require credentials.
+
+ ) : selectedFields.length > 0 ? (
+
+ {selectedFields.map((field) =>
+ field.inputType === 'textarea' ||
+ field.inputType === 'json' ? (
+
+ ) : (
+
+ No credential fields are declared for this authentication
+ type.
+
+ )}
+
+ {formError ? (
+
+ {formError}
+
+ ) : null}
+ >
+ ) : null}
+
+
+