| 123456789101112131415161718192021222324252627282930313233343536373839 |
- import React from 'react';
- import PropTypes from 'prop-types';
- import { withTranslation } from 'react-i18next';
- import PageListIcon from './Icons/PageListIcon';
- import TimeLineIcon from './Icons/TimeLineIcon';
- import CustomNavigation from './CustomNavigation';
- import PageList from './PageList';
- import PageTimeline from './PageTimeline';
- const NotFoundPage = (props) => {
- const { t } = props;
- const navTabMapping = {
- pagelist: {
- icon: <PageListIcon />,
- i18n: t('page_list'),
- tabContent: <PageList />,
- index: 0,
- },
- timeLine: {
- icon: <TimeLineIcon />,
- i18n: t('Timeline View'),
- tabContent: <PageTimeline />,
- index: 1,
- },
- };
- return (
- <div className="grw-custom-navigation mt-5 on-edit">
- <CustomNavigation navTabMapping={navTabMapping} />
- </div>
- );
- };
- NotFoundPage.propTypes = {
- t: PropTypes.func.isRequired, // i18next
- };
- export default withTranslation()(NotFoundPage);
|