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.

26 line
762B

  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': 'All Users', 'id': 'all-users' },
  11. { 'name': 'Current User', 'dropdown': [ { 'id': 'sign-out', 'name': 'Sign Out' } ]}
  12. ].concat(items) } rhs={ (
  13. <WBInlineSearch />
  14. ) } onItemClicked={ item => app.navbarItemClicked(item) }
  15. activeItem={ activeItem } />
  16. );
  17. }
  18. }
  19. WBNavbarCommon.defaultProps = {
  20. 'items': []
  21. };
  22. export default WBNavbarCommon;