mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
a30e934692
GitOrigin-RevId: 7ebbfa693205de1f57b1d54e25c46cfb1851acc8
24 lines
668 B
TypeScript
24 lines
668 B
TypeScript
import { useState } from 'react'
|
|
import { useTranslation } from 'react-i18next'
|
|
import ContactUsModal from '../../../../../modules/support/frontend/js/components/contact-us-modal'
|
|
import LeftMenuButton from './left-menu-button'
|
|
|
|
export default function HelpContactUs() {
|
|
const [showModal, setShowModal] = useState(false)
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<>
|
|
<LeftMenuButton
|
|
onClick={() => setShowModal(true)}
|
|
icon={{
|
|
type: 'question',
|
|
fw: true,
|
|
}}
|
|
>
|
|
{t('contact_us')}
|
|
</LeftMenuButton>
|
|
<ContactUsModal show={showModal} handleHide={() => setShowModal(false)} />
|
|
</>
|
|
)
|
|
}
|