diff --git a/app/client/src/ce/pages/Applications/EmbedSnippetTab.tsx b/app/client/src/ce/pages/Applications/EmbedSnippetTab.tsx index 0460ca5e2e..31dab0062a 100644 --- a/app/client/src/ce/pages/Applications/EmbedSnippetTab.tsx +++ b/app/client/src/ce/pages/Applications/EmbedSnippetTab.tsx @@ -16,6 +16,7 @@ import { PrivateEmbedSettings } from "ee/pages/Applications/PrivateEmbedSettings import { getCurrentApplication } from "ee/selectors/applicationSelectors"; import { useIsCloudBillingEnabled } from "hooks"; import { ChromeExtensionBanner } from "ee/pages/Applications/ChromeExtensionBanner"; +import { getIsAiAgentFlowEnabled } from "ee/selectors/aiAgentSelectors"; export const StyledPropertyHelpLabel = styled(PropertyHelpLabel)` .bp3-popover-content > div { @@ -57,6 +58,7 @@ export function ShareModal() { selectedMethod, ); const isCloudBillingEnabled = useIsCloudBillingEnabled(); + const isAiAgentFlowEnabled = useSelector(getIsAiAgentFlowEnabled); return (
@@ -90,18 +92,20 @@ export function ShareModal() {
)} - - embedSnippet.onChange({ - showNavigationBar: - !embedSnippet.currentEmbedSetting.showNavigationBar, - }) - } - > - {createMessage(IN_APP_EMBED_SETTING.showNavigationBar)} - + {Boolean(isAiAgentFlowEnabled) === false && ( + + embedSnippet.onChange({ + showNavigationBar: + !embedSnippet.currentEmbedSetting.showNavigationBar, + }) + } + > + {createMessage(IN_APP_EMBED_SETTING.showNavigationBar)} + + )} {!isPublicApp && (