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'
9
9
import { useTranslation } from 'src/languages/components/useTranslation'
10
10
import { AISearchCTAPopup } from '@/search/components/input/AISearchCTAPopup'
11
11
import { useSearchOverlayContext } from '@/search/components/context/SearchOverlayContext'
12
+ import { EXPERIMENTS } from '@/events/components/experiments/experiments'
13
+ import { useShouldShowExperiment } from '@/events/components/experiments/useShouldShowExperiment'
12
14
13
15
import styles from './SupportSection.module.scss'
14
16
@@ -18,6 +20,9 @@ export const SupportSection = () => {
18
20
const router = useRouter ( )
19
21
const { t } = useTranslation ( 'footer' )
20
22
const { setIsSearchOpen } = useSearchOverlayContext ( )
23
+ const { showExperiment : showNewSearch } = useShouldShowExperiment (
24
+ EXPERIMENTS . ai_search_experiment ,
25
+ )
21
26
22
27
const isDeprecated =
23
28
enterpriseServerReleases . isOldestReleaseDeprecated &&
@@ -29,7 +34,7 @@ export const SupportSection = () => {
29
34
const showSurvey = ! isDeprecated && ! isSitePolicyDocs
30
35
const showContribution = ! isDeprecated && ! isEarlyAccess && isEnglish
31
36
const showSupport = true
32
- const showCopilotCTA = ! isDeprecated && ! isEarlyAccess && isEnglish
37
+ const showCopilotCTA = ! isDeprecated && ! isEarlyAccess && isEnglish && showNewSearch
33
38
34
39
return (
35
40
< 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