NotFoundPage.jsx 964 B

123456789101112131415161718192021222324252627282930313233343536373839
  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 TimeLineIcon from './Icons/TimeLineIcon';
  6. import CustomNavigation from './CustomNavigation';
  7. import PageList from './PageList';
  8. import PageTimeline from './PageTimeline';
  9. const NotFoundPage = (props) => {
  10. const { t } = props;
  11. const navTabMapping = {
  12. pagelist: {
  13. icon: <PageListIcon />,
  14. i18n: t('page_list'),
  15. tabContent: <PageList />,
  16. index: 0,
  17. },
  18. timeLine: {
  19. icon: <TimeLineIcon />,
  20. i18n: t('Timeline View'),
  21. tabContent: <PageTimeline />,
  22. index: 1,
  23. },
  24. };
  25. return (
  26. <div className="grw-custom-navigation mt-5 on-edit">
  27. <CustomNavigation navTabMapping={navTabMapping} />
  28. </div>
  29. );
  30. };
  31. NotFoundPage.propTypes = {
  32. t: PropTypes.func.isRequired, // i18next
  33. };
  34. export default withTranslation()(NotFoundPage);