mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
f065a7a909
GitOrigin-RevId: fbb23b32c47edbe5a22badc627318accbd09e82a
22 lines
554 B
JavaScript
22 lines
554 B
JavaScript
import PropTypes from 'prop-types'
|
|
import { useTranslation } from 'react-i18next'
|
|
import Icon from '../../../shared/components/icon'
|
|
|
|
function MenuButton({ onClick }) {
|
|
const { t } = useTranslation()
|
|
|
|
return (
|
|
<div className="toolbar-item">
|
|
<button className="btn btn-full-height" onClick={onClick}>
|
|
<Icon type="bars" fw className="editor-menu-icon" />
|
|
<p className="toolbar-label">{t('menu')}</p>
|
|
</button>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
MenuButton.propTypes = {
|
|
onClick: PropTypes.func.isRequired,
|
|
}
|
|
|
|
export default MenuButton
|