PageContent.jsx 464B

123456789101112131415161718192021222324
  1. import React from 'react'
  2. import PropTypes from 'prop-types'
  3. import classnames from 'classnames'
  4. const PageContent = props => {
  5. return (
  6. <div className={classnames(props.parentClass, props.customClass, 'pageContentGeneric')}>
  7. {props.children}
  8. </div>
  9. )
  10. }
  11. PageContent.propTypes = {
  12. parentClass: PropTypes.string,
  13. customClass: PropTypes.string
  14. }
  15. PageContent.defaultProps = {
  16. parentClass: '',
  17. customClass: ''
  18. }
  19. export default PageContent