IF YOU WOULD LIKE TO GET AN ACCOUNT, please write an email to s dot adaszewski at gmail dot com. User accounts are meant only to report issues and/or generate pull requests. This is a purpose-specific Git hosting for ADARED projects. Thank you for your understanding!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
701B

  1. import { h, Component } from 'preact';
  2. import WBNavbar from 'wb-navbar';
  3. import WBInlineSearch from 'wb-inline-search';
  4. class WBNavbarCommon extends Component {
  5. render({ app, items, activeItem }) {
  6. return (
  7. <WBNavbar items={ [
  8. { 'name': 'Home', 'id': 'home' },
  9. { 'name': 'All Projects', 'id': 'all-projects' },
  10. { 'name': 'User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  11. ].concat(items) } rhs={ (
  12. <WBInlineSearch />
  13. ) } onItemClicked={ item => app.navbarItemClicked(item) }
  14. activeItem={ activeItem } />
  15. );
  16. }
  17. }
  18. WBNavbarCommon.defaultProps = {
  19. 'items': []
  20. };
  21. export default WBNavbarCommon;