// // Copyright (C) Stanislaw Adaszewski, 2020 // Contact: s.adaszewski@gmail.com // Website: https://adared.ch/wba // License: GNU Affero General Public License, Version 3 // import { h, Component } from 'preact'; import WBNavbar from 'wb-navbar'; import WBInlineSearch from 'wb-inline-search'; class WBNavbarCommon extends Component { render({ app, items, activeItem, textSearch, textSearchNavigate }) { return ( What's New Info), id: 'whatsnew' } ].concat(items) } rhs={ textSearchNavigate ? ( ) : null } titleUrl = { '/browse/' + app.state.currentUser.uuid } getItemUrl={ item => app.navbarItemUrl(item) } activeItem={ activeItem } /> ); } } WBNavbarCommon.defaultProps = { 'items': [] }; export default WBNavbarCommon;