// @flow import Navigation, { AkGlobalItem } from '@atlaskit/navigation'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { SettingsAction, SettingsDrawer } from '../../settings'; import { isElectronMac } from '../../utils'; import HelpAction from './HelpAction'; import Logo from './Logo'; /** * Navigation Bar component. */ class Navbar extends Component<*> { /** * Get the primary icon of Global Navigation. * * @returns {ReactElement} */ _getPrimaryIcon() { return ; } /** * Get the array of Primary actions of Global Navigation. * * @returns {ReactElement[]} */ _getPrimaryActions() { return [ ]; } /** * Get the array of Secondary actions of Global Navigation. * * @returns {ReactElement[]} */ _getSecondaryActions() { return [ ]; } /** * Render function of component. * * @returns {ReactElement} */ render() { return ( ] } globalPrimaryActions = { this._getPrimaryActions() } globalPrimaryIcon = { this._getPrimaryIcon() } globalSecondaryActions = { this._getSecondaryActions() } isElectronMac = { isElectronMac() } isOpen = { false } isResizeable = { false } /> ); } } /** * Maps (parts of) the redux state to the React props. * * @param {Object} state - The redux state. * @returns {{ * _isSettingsDrawerOpen: boolean * }} */ function _mapStateToProps(state: Object) { return { _isSettingsDrawerOpen: state.navbar.openDrawer === SettingsDrawer }; } export default connect(_mapStateToProps)(Navbar);