import React from 'react'; import PropTypes from 'prop-types'; import UserPicture from '../User/UserPicture'; import PageListMeta from './PageListMeta'; import PagePath from './PagePath'; export default class Page extends React.Component { render() { const page = this.props.page; let link = this.props.linkTo; if (link === '') { link = page.path; } return (
  • {this.props.children}
  • ); } } Page.propTypes = { page: PropTypes.object.isRequired, linkTo: PropTypes.string, }; Page.defaultProps = { page: {}, linkTo: '', excludePathString: '', };