Connections
{!showEmptyState ? (
) : null}
{loading ? (
) : showEmptyState ? (
No connections yet
Add a connection to make this integration's tools available.
) : (
{OWNERS.map((owner: Owner) => (
{
if (connection.oauthClient == null) return;
setReconnectHandoff({
key: `reconnect:${connection.owner}:${String(connection.integration)}:${String(
connection.name,
)}:${Date.now()}`,
owner: connection.owner,
template: String(connection.template),
label: String(connection.name),
...(connection.identityLabel != null
? { identityLabel: connection.identityLabel }
: {}),
oauthClient: {
action: "reconnect",
slug: String(connection.oauthClient),
owner: connection.oauthClientOwner ?? connection.owner,
},
});
}}
declaredScopes={declaredScopes}
/>
))}
)}
{modal}
{
if (!open) setEditingConnection(null);
}}
/>
);
}