-
}
- onUnavailableAction={handleUnavailableAction}
- >
-
}
- >
-
- {t('agentDetail.access.webApp.actions.launch')}
-
-
-
-
-
-
-
-
- }
- >
-
- {t('agentDetail.access.serviceApi.actions.apiReference')}
-
-
+
+
@@ -188,121 +80,3 @@ export function AgentAccessPage({
)
}
-
-function AccessSurfaceCard({
- title,
- icon,
- iconClassName,
- endpointLabel,
- endpoint,
- enabled,
- onEnabledChange,
- copyLabel,
- children,
- badge,
- onUnavailableAction,
-}: AccessSurfaceCardProps) {
- const { t } = useTranslation('agentV2')
- const { copy } = useClipboard({
- onCopyError: () => {
- toast.error(t('agentDetail.access.copyFailed'))
- },
- })
-
- const handleCopyEndpoint = () => {
- void copy(endpoint)
- }
-
- return (
-
-
-
-
-
-
-
-
- {title}
-
- {badge}
-
-
-
-
-
- {t(enabled ? 'agentDetail.access.status.inService' : 'agentDetail.access.status.outOfService')}
-
-
-
-
-
-
-
- {endpointLabel}
-
-
-
- {endpoint}
-
-
- {badge !== undefined && badge !== null && (
- <>
-
-
-
- >
- )}
-
-
-
-
-
- {children}
-
-
- )
-}
-
-function SsoBadge() {
- const { t } = useTranslation('agentV2')
-
- return (
-
-
- {t('agentDetail.access.webApp.ssoEnabled')}
-
- )
-}