import Header from './header';
import Sidebar from './sidebar';
import Content from './content';
import Footer from './footer';
export default function Page( props ) {
const AppSidebar = () => {
if ( ! props.sidebar ) {
return;
}
return (
{ props.sidebar }
);
},
AppFooter = () => {
if ( ! props.footer ) {
return;
}
return (
);
};
return (
);
}
Page.propTypes = {
title: PropTypes.string,
titleRedirectRoute: PropTypes.string,
className: PropTypes.string,
headerButtons: PropTypes.arrayOf( PropTypes.object ),
sidebar: PropTypes.object,
content: PropTypes.object.isRequired,
footer: PropTypes.object,
onClose: PropTypes.func,
};
Page.defaultProps = {
className: '',
};