File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
packages/core/src/App/Components/Elements/WhatsApp Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
1
import React , { Fragment } from 'react' ;
2
- import { Popover , Icon } from '@deriv/components' ;
2
+
3
+ import { Icon , Popover } from '@deriv/components' ;
4
+ import { useIsIntercomAvailable , useIsLiveChatWidgetAvailable } from '@deriv/hooks' ;
3
5
import { localize } from '@deriv/translations' ;
4
6
import { useDevice } from '@deriv-com/ui' ;
5
7
import { URLConstants } from '@deriv-com/utils' ;
6
- import { useGrowthbookGetFeatureValue , useIsLiveChatWidgetAvailable } from '@deriv/hooks' ;
7
8
8
9
const WhatsApp = ( { showPopover, onClick } : { showPopover ?: boolean ; onClick ?: ( ) => void } ) => {
9
10
const { isDesktop } = useDevice ( ) ;
10
11
11
12
const { is_livechat_available } = useIsLiveChatWidgetAvailable ( ) ;
13
+ const icAvailable = useIsIntercomAvailable ( ) ;
12
14
13
- const [ enable_freshworks_live_chat ] = useGrowthbookGetFeatureValue ( {
14
- featureFlag : 'enable_freshworks_live_chat' ,
15
- } ) ;
16
-
17
- if ( ! is_livechat_available && ! enable_freshworks_live_chat ) return null ;
15
+ if ( ! is_livechat_available && ! icAvailable ) return null ;
18
16
19
17
if ( ! isDesktop )
20
18
return (
You can’t perform that action at this time.
0 commit comments