NotFoundPage.tsx 1012 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React, { useMemo } from 'react';
  2. import { useTranslation } from 'next-i18next';
  3. import CustomNavAndContents from './CustomNavigation/CustomNavAndContents';
  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 navTabMapping = useMemo(() => {
  11. return {
  12. pagelist: {
  13. Icon: PageListIcon,
  14. Content: DescendantsPageListForCurrentPath,
  15. i18n: t('page_list'),
  16. index: 0,
  17. },
  18. timeLine: {
  19. Icon: TimeLineIcon,
  20. Content: PageTimeline,
  21. i18n: t('Timeline View'),
  22. index: 1,
  23. },
  24. };
  25. }, [t]);
  26. return (
  27. <div className="d-edit-none">
  28. <CustomNavAndContents navTabMapping={navTabMapping} tabContentClasses={['py-4']} />
  29. </div>
  30. );
  31. };
  32. export default NotFoundPage;