overleaf/services/web/frontend/js/features/symbol-palette/components/symbol-palette-info-link.js
Alf Eaton d5f7b1169f Add info link to symbol palette (#4086)
GitOrigin-RevId: 4950dd1a7b15e965ffc4d2651017f491ce9ecf99
2021-05-26 02:05:23 +00:00

30 lines
808 B
JavaScript

import React from 'react'
import { Button, OverlayTrigger, Tooltip } from 'react-bootstrap'
import { useTranslation } from 'react-i18next'
export default function SymbolPaletteInfoLink() {
const { t } = useTranslation()
return (
<OverlayTrigger
placement="top"
trigger={['hover', 'focus']}
overlay={
<Tooltip id="tooltip-symbol-palette-info">
{t('find_out_more_about_latex_symbols')}
</Tooltip>
}
>
<Button
bsStyle="link"
bsSize="small"
className="symbol-palette-info-link"
href="https://www.overleaf.com/learn/latex/List_of_Greek_letters_and_math_symbols"
target="_blank"
rel="noopener noreferer"
>
<span className="info-badge" />
</Button>
</OverlayTrigger>
)
}