mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-29 05:00:06 +02:00

* Remove skipLoadingStyleSheet * Remove unused bootstrap-5 assignment from the Account settings page since it's archived * Remove bsVersionIcon * Remove bsVersion, bootstrapVersion and isBootstrap5 from elements on the IDE page * Remove BS3Dropdown from the context menu * Cleanup Bootstrap 3 related comment and type GitOrigin-RevId: a67244eb78943ee84cc5f89bae164c0361e8fc13
24 lines
719 B
TypeScript
24 lines
719 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import { useCallback } from 'react'
|
|
import * as eventTracking from '../../../infrastructure/event-tracking'
|
|
import { useContactUsModal } from '../../../shared/hooks/use-contact-us-modal'
|
|
import LeftMenuButton from './left-menu-button'
|
|
|
|
export default function HelpContactUs() {
|
|
const { modal, showModal } = useContactUsModal()
|
|
const { t } = useTranslation()
|
|
|
|
const showModalWithAnalytics = useCallback(() => {
|
|
eventTracking.sendMB('left-menu-contact')
|
|
showModal()
|
|
}, [showModal])
|
|
|
|
return (
|
|
<>
|
|
<LeftMenuButton onClick={showModalWithAnalytics} icon="contact_support">
|
|
{t('contact_us')}
|
|
</LeftMenuButton>
|
|
{modal}
|
|
</>
|
|
)
|
|
}
|