CustomSidebar.jsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import React from 'react';
  2. // import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. import { JiraWordmark } from '@atlaskit/logo';
  5. import {
  6. HeaderSection,
  7. MenuSection,
  8. Wordmark,
  9. } from '@atlaskit/navigation-next';
  10. import { createSubscribedElement } from '../UnstatedUtils';
  11. import AppContainer from '../../services/AppContainer';
  12. class CustomSidebar extends React.Component {
  13. static propTypes = {
  14. };
  15. state = {
  16. };
  17. render() {
  18. return (
  19. <>
  20. <HeaderSection>
  21. { () => (
  22. <div className="grw-product-nav-header">
  23. <Wordmark wordmark={JiraWordmark} />
  24. </div>
  25. ) }
  26. </HeaderSection>
  27. <MenuSection>
  28. { () => (
  29. <span>(TBD) CustomSidebar Contents</span>
  30. ) }
  31. </MenuSection>
  32. </>
  33. );
  34. }
  35. }
  36. /**
  37. * Wrapper component for using unstated
  38. */
  39. const CustomSidebarWrapper = (props) => {
  40. return createSubscribedElement(CustomSidebar, props, [AppContainer]);
  41. };
  42. export default withTranslation()(CustomSidebarWrapper);