import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; const Layout = ({ children }) => (
{children}
); const Sidebar = ({ children }) => (
{children}
); const Main = ({ children, className }) => (
{children}
); const Aside = ({ children }) => ( ); Layout.propTypes = { children: PropTypes.node.isRequired, }; Sidebar.propTypes = { children: PropTypes.node, }; Main.propTypes = { children: PropTypes.node, className: PropTypes.string, }; Aside.propTypes = { children: PropTypes.node, }; Layout.Sidebar = Sidebar; Layout.Main = Main; Layout.Aside = Aside; export default Layout;