/*
 * Author: chenruilong
 * Create Time: 2022/01/13
 * Description:
 */
import React from 'react';
import Header from './header';
import Sider from './sider';

const Layout: any = (props: any) => {
  return (
    <section className="brick-layout" {...props}>
      {props.children}
    </section>
  );
};

const Content = (props: any) => {
  return (
    <main className="brick-layout-content" {...props}>
      {props.children}
    </main>
  );
};

Layout.Header = Header;
Layout.Sider = Sider;
Layout.Content = Content;

export default Layout;
