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'
|
2024-10-11 05:22:38 -04:00
|
|
|
import { bsVersionIcon } from '@/features/utils/bootstrap-5'
|
2022-10-24 16:33:13 -04:00
|
|
|
|
|
|
|
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}
|
2024-10-11 05:22:38 -04:00
|
|
|
icon={bsVersionIcon({
|
|
|
|
bs5: { type: 'contact_support' },
|
|
|
|
bs3: { type: 'question', fw: true },
|
|
|
|
})}
|
2022-10-24 16:33:13 -04:00
|
|
|
>
|
|
|
|
{t('contact_us')}
|
|
|
|
</LeftMenuButton>
|
2022-11-10 13:21:56 -05:00
|
|
|
{modal}
|
2022-10-24 16:33:13 -04:00
|
|
|
</>
|
|
|
|
)
|
|
|
|
}
|