mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-26 14:14:52 +02:00
57 lines
1.2 KiB
JavaScript
57 lines
1.2 KiB
JavaScript
|
|
// @flow
|
|
|
|
import Navigation, { AkGlobalItem } from '@atlaskit/navigation';
|
|
|
|
import React, { Component } from 'react';
|
|
|
|
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 <Logo />;
|
|
}
|
|
|
|
/**
|
|
* Get the array of Secondary actions of Global Navigation.
|
|
*
|
|
* @returns {ReactElement[]}
|
|
*/
|
|
_getSecondaryActions() {
|
|
return [
|
|
<AkGlobalItem key = { 0 }>
|
|
<HelpAction />
|
|
</AkGlobalItem>
|
|
];
|
|
}
|
|
|
|
/**
|
|
* Render function of component.
|
|
*
|
|
* @returns {ReactElement}
|
|
*/
|
|
render() {
|
|
return (
|
|
<Navigation
|
|
globalPrimaryIcon = { this._getPrimaryIcon() }
|
|
globalSecondaryActions = { this._getSecondaryActions() }
|
|
isElectronMac = { isElectronMac() }
|
|
isOpen = { false }
|
|
isResizeable = { false } />
|
|
);
|
|
}
|
|
}
|
|
|
|
export default Navbar;
|