-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOfficeBranchPage.tsx
29 lines (25 loc) · 1.11 KB
/
OfficeBranchPage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import { ComponentMapper } from 'components/ComponentMapper';
import { OfficeBranchPageProps } from 'types/content-props/dynamic-page-props';
import { classNames } from 'utils/classnames';
import { logger } from 'srcCommon/logger';
import { OfficePageHeader } from './office-page-header/OfficePageHeader';
import { OfficeDetails } from './office-details/OfficeDetails';
import styles from './OfficeBranchPage.module.scss';
export const OfficeBranchPage = (props: OfficeBranchPageProps) => {
const editorialPage = props.editorial;
if (!editorialPage) {
logger.error(`No editorial page found for ${props.displayName}`);
}
return (
<div className={styles.officeBranchPage}>
<OfficePageHeader officeDetails={props.data} showTimeStamp={false} />
<OfficeDetails officeData={props.data} />
<div className={classNames(styles.content, styles.pageContent)}>
{editorialPage && (
<ComponentMapper componentProps={editorialPage.page} pageProps={props} />
)}
</div>
</div>
);
};