|
@@ -20,6 +20,7 @@ import type { CommentsProps } from '../Comments';
|
|
|
import { PageViewLayout } from '../Layout/PageViewLayout';
|
|
import { PageViewLayout } from '../Layout/PageViewLayout';
|
|
|
import { PageAlerts } from '../PageAlert/PageAlerts';
|
|
import { PageAlerts } from '../PageAlert/PageAlerts';
|
|
|
import { PageContentFooter } from '../PageContentFooter';
|
|
import { PageContentFooter } from '../PageContentFooter';
|
|
|
|
|
+import { PagePathNav } from '../PagePathNav';
|
|
|
import type { PageSideContentsProps } from '../PageSideContents';
|
|
import type { PageSideContentsProps } from '../PageSideContents';
|
|
|
import { UserInfo } from '../User/UserInfo';
|
|
import { UserInfo } from '../User/UserInfo';
|
|
|
import type { UsersHomepageFooterProps } from '../UsersHomepageFooter';
|
|
import type { UsersHomepageFooterProps } from '../UsersHomepageFooter';
|
|
@@ -98,6 +99,10 @@ export const PageView = (props: Props): JSX.Element => {
|
|
|
}
|
|
}
|
|
|
}, [isForbidden, isIdenticalPathPage, isNotCreatable]);
|
|
}, [isForbidden, isIdenticalPathPage, isNotCreatable]);
|
|
|
|
|
|
|
|
|
|
+ const headerContents = (
|
|
|
|
|
+ <PagePathNav pageId={page?._id} pagePath={pagePath} />
|
|
|
|
|
+ );
|
|
|
|
|
+
|
|
|
const sideContents = !isNotFound && !isNotCreatable
|
|
const sideContents = !isNotFound && !isNotCreatable
|
|
|
? (
|
|
? (
|
|
|
<PageSideContents page={page} />
|
|
<PageSideContents page={page} />
|
|
@@ -141,6 +146,7 @@ export const PageView = (props: Props): JSX.Element => {
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<PageViewLayout
|
|
<PageViewLayout
|
|
|
|
|
+ headerContents={headerContents}
|
|
|
sideContents={sideContents}
|
|
sideContents={sideContents}
|
|
|
footerContents={footerContents}
|
|
footerContents={footerContents}
|
|
|
>
|
|
>
|