import React from 'react'; import PropTypes from 'prop-types'; import Logo from './logo'; import CommonToolbar from './toolbar/common-toolbar'; import '../css/header.css'; const propTypes = { children: PropTypes.object, eventBus: PropTypes.object.isRequired, isSidePanelClosed: PropTypes.bool, onCloseSidePanel: PropTypes.func, onShowSidePanel: PropTypes.func, onSearchedClick: PropTypes.func, searchPlaceholder: PropTypes.string, showSearch: PropTypes.bool, isSidePanelFolded: PropTypes.bool, }; class Header extends React.Component { onMouseEnter = () => { if (this.props.isSidePanelFolded) { this.props.eventBus.dispatch('top-header-mouse-enter'); } }; render() { const { onShowSidePanel, onSearchedClick, showSearch, children } = this.props; return (