@@ -19,6 +19,7 @@ import { useEffect } from 'react';
1919import { useGetAIAgentQuery } from 'react-query/api/ai-agent' ;
2020import { uiState } from 'state/ui-state' ;
2121
22+ import { isFeatureFlagEnabled } from 'config' ;
2223import { AIAgentCardTab } from './ai-agent-card-tab' ;
2324import { AIAgentConfigurationTab } from './ai-agent-configuration-tab' ;
2425import { AIAgentDetailsHeader } from './ai-agent-details-header' ;
@@ -92,12 +93,14 @@ export const AIAgentDetailsPage = () => {
9293 Configuration
9394 </ div >
9495 </ TabsTrigger >
95- < TabsTrigger className = "gap-2" value = "integrations" >
96- < div className = "flex items-center gap-2" >
97- < Plug className = "h-4 w-4" />
98- Integrations
99- </ div >
100- </ TabsTrigger >
96+ { isFeatureFlagEnabled ( 'enableTeamsBridge' ) && (
97+ < TabsTrigger className = "gap-2" value = "integrations" >
98+ < div className = "flex items-center gap-2" >
99+ < Plug className = "h-4 w-4" />
100+ Integrations
101+ </ div >
102+ </ TabsTrigger >
103+ ) }
101104 < TabsTrigger className = "gap-2" value = "agent-card" >
102105 < div className = "flex items-center gap-2" >
103106 < Network className = "h-4 w-4" />
@@ -119,9 +122,11 @@ export const AIAgentDetailsPage = () => {
119122 < TabsContent value = "configuration" >
120123 < AIAgentConfigurationTab />
121124 </ TabsContent >
122- < TabsContent value = "integrations" >
123- < AIAgentIntegrationsTab />
124- </ TabsContent >
125+ { isFeatureFlagEnabled ( 'enableTeamsBridge' ) && (
126+ < TabsContent value = "integrations" >
127+ < AIAgentIntegrationsTab />
128+ </ TabsContent >
129+ ) }
125130 < TabsContent value = "agent-card" >
126131 < AIAgentCardTab />
127132 </ TabsContent >
0 commit comments