text: "main";let React,Fragment;_232‍.w("react",[["default",["React"],function(v){React=v}],["Fragment",["Fragment"],function(v){Fragment=v}]]);let PropTypes;_232‍.w("prop-types",[["default",["PropTypes"],function(v){PropTypes=v}]]);let themeSettings;_232‍.w("../lib/settings",[["themeSettings",["themeSettings"],function(v){themeSettings=v}]]);let MetaTags;_232‍.w("../components/metaTags",[["default",["MetaTags"],function(v){MetaTags=v}]]);let PageList;_232‍.w("../components/pageList",[["default",["PageList"],function(v){PageList=v}]]);
  
  
  
  
  
  const PageContainer = props => {
  	const {
  		state: { pageDetails }
  	} = props;
  	const pageListTag = themeSettings.page_list_tag;
  	const pageListTagDefined = pageListTag && pageListTag.length > 0;
  	const pageListPath = pageListTagDefined ? `/${pageListTag}` : null;
  	const showPageList = pageListTagDefined && pageDetails.path === pageListPath;
  
  	return React.createElement(
  		Fragment,
  		null,
  		React.createElement(MetaTags, {
  			title: pageDetails.meta_title,
  			description: pageDetails.meta_description,
  			canonicalUrl: pageDetails.url,
  			ogType: 'article',
  			ogTitle: pageDetails.meta_title,
  			ogDescription: pageDetails.meta_description
  		}),
  		React.createElement(
  			'section',
  			{ className: 'section' },
  			React.createElement(
  				'div',
  				{ className: 'container' },
  				React.createElement(
  					'div',
  					{ className: 'content' },
  					React.createElement('div', {
  						className: 'page-content',
  						dangerouslySetInnerHTML: {
  							__html: pageDetails.content
  						}
  					}),
  					showPageList && React.createElement(PageList, { tags: pageListTag, sort: '-date_created' })
  				)
  			)
  		)
  	);
  };
  
  PageContainer.propTypes = {
  	state: PropTypes.shape({
  		pageDetails: PropTypes.shape({})
  	}).isRequired
  };
  
  _232‍.d(PageContainer);