mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
aa480a2663
[web] migrate from window attributes to getMeta GitOrigin-RevId: 3dcf1ab6b01155e5e4abeb3e78d0fa9053e055bc
31 lines
735 B
TypeScript
31 lines
735 B
TypeScript
import { useTranslation } from 'react-i18next'
|
|
import getMeta from '../../../utils/meta'
|
|
import HelpContactUs from './help-contact-us'
|
|
import HelpDocumentation from './help-documentation'
|
|
import HelpShowHotkeys from './help-show-hotkeys'
|
|
|
|
export default function HelpMenu() {
|
|
const { t } = useTranslation()
|
|
const showSupport = getMeta('ol-showSupport')
|
|
|
|
return (
|
|
<>
|
|
<h4>{t('help')}</h4>
|
|
<ul className="list-unstyled nav">
|
|
<li>
|
|
<HelpShowHotkeys />
|
|
</li>
|
|
{showSupport ? (
|
|
<>
|
|
<li>
|
|
<HelpDocumentation />
|
|
</li>
|
|
<li>
|
|
<HelpContactUs />
|
|
</li>
|
|
</>
|
|
) : null}
|
|
</ul>
|
|
</>
|
|
)
|
|
}
|