index.js 948 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import React, {Component} from 'react';
  2. import './index.less';
  3. import {
  4. base
  5. } from 'nc-lightapp-front';
  6. const {
  7. NCButton
  8. } = base;
  9. export default class AddPageHeader extends Component {
  10. constructor(props) {
  11. super(props);
  12. }
  13. render() {
  14. const {
  15. status,
  16. onClick,
  17. button,
  18. language,
  19. cancelEdit,
  20. cardPagination,
  21. toBrowsePage,
  22. fromApprove
  23. } = this.props;
  24. return (
  25. <div className="add-page-header-wrapper">
  26. <Choose>
  27. <When condition={status === 'browse'}>
  28. {button.createButtonApp({
  29. area: 'head',
  30. onButtonClick: onClick('browse_status')
  31. })}
  32. </When>
  33. </Choose>
  34. </div>
  35. );
  36. }
  37. }