File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ import { useRouter } from 'next/router'
99import { useTranslation } from 'src/languages/components/useTranslation'
1010import { AISearchCTAPopup } from '@/search/components/input/AISearchCTAPopup'
1111import { useSearchOverlayContext } from '@/search/components/context/SearchOverlayContext'
12+ import { EXPERIMENTS } from '@/events/components/experiments/experiments'
13+ import { useShouldShowExperiment } from '@/events/components/experiments/useShouldShowExperiment'
1214
1315import styles from './SupportSection.module.scss'
1416
@@ -18,6 +20,9 @@ export const SupportSection = () => {
1820 const router = useRouter ( )
1921 const { t } = useTranslation ( 'footer' )
2022 const { setIsSearchOpen } = useSearchOverlayContext ( )
23+ const { showExperiment : showNewSearch } = useShouldShowExperiment (
24+ EXPERIMENTS . ai_search_experiment ,
25+ )
2126
2227 const isDeprecated =
2328 enterpriseServerReleases . isOldestReleaseDeprecated &&
@@ -29,7 +34,7 @@ export const SupportSection = () => {
2934 const showSurvey = ! isDeprecated && ! isSitePolicyDocs
3035 const showContribution = ! isDeprecated && ! isEarlyAccess && isEnglish
3136 const showSupport = true
32- const showCopilotCTA = ! isDeprecated && ! isEarlyAccess && isEnglish
37+ const showCopilotCTA = ! isDeprecated && ! isEarlyAccess && isEnglish && showNewSearch
3338
3439 return (
3540 < section className = "container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto" >
You can’t perform that action at this time.
0 commit comments