jitsi-meet-electron/app/features/navbar/components/Navbar.js

46 lines
955 B
JavaScript
Raw Normal View History

2018-06-08 10:51:58 +02:00
// @flow
import Navigation, { AkGlobalItem } from '@atlaskit/navigation';
import React, { Component } from 'react';
import { isElectronMac } from '../../utils';
import HelpAction from './HelpAction';
/**
* Navigation Bar component.
*/
class Navbar extends Component<*> {
/**
* Get the array of Secondary actions of Global Navigation.
2018-06-07 09:47:42 +02:00
*
* @returns {ReactElement[]}
2018-06-08 10:51:58 +02:00
*/
_getSecondaryActions() {
return [
2018-06-07 09:47:42 +02:00
<AkGlobalItem key = { 0 }>
2018-06-08 10:51:58 +02:00
<HelpAction />
</AkGlobalItem>
];
}
/**
* Render function of component.
*
2018-06-07 09:47:42 +02:00
* @returns {ReactElement}
2018-06-08 10:51:58 +02:00
*/
render() {
return (
<Navigation
globalSecondaryActions = { this._getSecondaryActions() }
isElectronMac = { isElectronMac() }
isOpen = { false }
isResizeable = { false } />
);
}
}
export default Navbar;