2
0

NotFoundPage.tsx 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. import React, { useMemo } from 'react';
  2. import { useTranslation } from 'next-i18next';
  3. import dynamic from 'next/dynamic';
  4. import { DescendantsPageListForCurrentPath } from './DescendantsPageList';
  5. import PageListIcon from './Icons/PageListIcon';
  6. import TimeLineIcon from './Icons/TimeLineIcon';
  7. // import PageTimeline from './PageTimeline';
  8. const NotFoundPage = (): JSX.Element => {
  9. const { t } = useTranslation();
  10. const CustomNavAndContents = dynamic(() => import('./CustomNavigation/CustomNavAndContents'), { ssr: false });
  11. const navTabMapping = useMemo(() => {
  12. return {
  13. pagelist: {
  14. Icon: PageListIcon,
  15. Content: DescendantsPageListForCurrentPath,
  16. i18n: t('page_list'),
  17. index: 0,
  18. },
  19. timeLine: {
  20. Icon: TimeLineIcon,
  21. // Content: PageTimeline,
  22. Content: () => <></>,
  23. i18n: t('Timeline View'),
  24. index: 1,
  25. },
  26. };
  27. }, [t]);
  28. return (
  29. <div className="d-edit-none">
  30. <CustomNavAndContents navTabMapping={navTabMapping} tabContentClasses={['py-4']} />
  31. </div>
  32. );
  33. };
  34. export default NotFoundPage;