Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var defaultPageHeaderRender = function defaultPageHeaderRender(props) {
var title = props.title,
content = props.content,
pageHeaderRender = props.pageHeaderRender,
extraContent = props.extraContent,
restProps = _objectWithoutProperties(props, [
'title',
'content',
'pageHeaderRender',
'extraContent',
]);
return React.createElement(RouteContext.Consumer, null, function(value) {
if (pageHeaderRender) {
return pageHeaderRender(_objectSpread({}, props, value));
}
return React.createElement(
_PageHeader,
Object.assign(
{},
value,
{
title: title,
},
restProps,
{
footer: renderFooter(restProps),
},