+
+ {t('Send to %s', integration.name)}
+ {hasDuplicateNames && (
+ ({integration.id})
+ )}
+
+ ),
+ onAction: () => handleLaunchCodingAgent(integration.id, integration.name),
+ disabled: isLoadingAgents || isLaunchingAgent,
+ })),
+ ];
+
+ const primaryButtonLabel = isSeerPreferred
+ ? t('Find Solution with Seer')
+ : hasDuplicateNames
+ ? t('Send to %s (%s)', preferredIntegration!.name, preferredIntegration!.id)
+ : t('Send to %s', preferredIntegration!.name);
+
+ const primaryButtonProps = isSeerPreferred
+ ? {
+ onClick: submitFindSolution,
+ busy: isSelectingRootCause,
+ icon: undefined,
+ children: primaryButtonLabel,
+ }
+ : {
+ onClick: () =>
+ handleLaunchCodingAgent(preferredIntegration!.id, preferredIntegration!.name),
+ busy: isLaunchingAgent,
+ icon: