TrashPage.jsx 740 B

1234567891011121314151617181920212223242526272829303132
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import { withTranslation } from 'react-i18next';
  4. import PageListIcon from './Icons/PageListIcon';
  5. import CustomNavigation from './CustomNavigation';
  6. const TrashPage = (props) => {
  7. const { t } = props;
  8. const navTabMapping = {
  9. pagelist: {
  10. icon: <PageListIcon />,
  11. i18n: t('page_list'),
  12. // [TODO: show trash page list by gw4064]
  13. tabContent: t('Trash page list'),
  14. index: 0,
  15. },
  16. };
  17. return (
  18. <div className="grw-custom-navigation mt-5">
  19. <CustomNavigation navTabMapping={navTabMapping} />
  20. </div>
  21. );
  22. };
  23. TrashPage.propTypes = {
  24. t: PropTypes.func.isRequired, // i18next
  25. };
  26. export default withTranslation()(TrashPage);