2022-10-24 16:33:13 -04:00
|
|
|
import { useTranslation } from 'react-i18next'
|
2023-08-22 09:33:19 -04:00
|
|
|
import { useCallback } from 'react'
|
|
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
2022-11-10 13:21:56 -05:00
|
|
|
import { useContactUsModal } from '../../../shared/hooks/use-contact-us-modal'
|
2022-10-24 16:33:13 -04:00
|
|
|
import LeftMenuButton from './left-menu-button'
|
|
|
|
|
|
|
|
export default function HelpContactUs() {
|
2022-11-10 13:21:56 -05:00
|
|
|
const { modal, showModal } = useContactUsModal()
|
2022-10-24 16:33:13 -04:00
|
|
|
const { t } = useTranslation()
|
|
|
|
|
2023-08-22 09:33:19 -04:00
|
|
|
const showModalWithAnalytics = useCallback(() => {
|
|
|
|
eventTracking.sendMB('left-menu-contact')
|
|
|
|
showModal()
|
|
|
|
}, [showModal])
|
|
|
|
|
2022-10-24 16:33:13 -04:00
|
|
|
return (
|
|
|
|
<>
|
|
|
|
<LeftMenuButton
|
2023-08-22 09:33:19 -04:00
|
|
|
onClick={showModalWithAnalytics}
|
2022-10-24 16:33:13 -04:00
|
|
|
icon={{
|
|
|
|
type: 'question',
|
|
|
|
fw: true,
|
|
|
|
}}
|
|
|
|
>
|
|
|
|
{t('contact_us')}
|
|
|
|
</LeftMenuButton>
|
2022-11-10 13:21:56 -05:00
|
|
|
{modal}
|
2022-10-24 16:33:13 -04:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|