NotFoundPage.tsx 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. import CustomNavAndContents from './CustomNavigation/CustomNavAndContents';
  9. const NotFoundPage = (): JSX.Element => {
  10. const { t } = useTranslation();
  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. i18n: t('Timeline View'),
  23. index: 1,
  24. },
  25. };
  26. }, [t]);
  27. return (
  28. <div className="d-edit-none">
  29. <CustomNavAndContents navTabMapping={navTabMapping} tabContentClasses={['py-4']} />
  30. </div>
  31. );
  32. };
  33. export default NotFoundPage;