import React, { PureComponent } from 'react' import PropTypes from 'prop-types' import Tooltip from '../tooltip' import SelectedAccount from '../selected-account' export default class MenuBar extends PureComponent { static contextTypes = { t: PropTypes.func, } static propTypes = { hideSidebar: PropTypes.func, isMascara: PropTypes.bool, sidebarOpen: PropTypes.bool, showSidebar: PropTypes.func, } render () { const { t } = this.context const { isMascara, sidebarOpen, hideSidebar, showSidebar } = this.props return (
sidebarOpen ? hideSidebar() : showSidebar()} /> { !isMascara && (
global.platform.openExtensionInBrowser()} >
) }
) } }