author | ymh <ymh.work@gmail.com> |
Mon, 04 Apr 2022 17:02:10 +0200 | |
changeset 26 | eb14941af2e7 |
parent 17 | c2c97df0a642 |
permissions | -rw-r--r-- |
import React from 'react'; import DefaultLayout from './DefaultLayout'; import Sidebar from '../ui/Sidebar'; const DefaultLayoutSidebar = ({ // eslint-disable-next-line react/prop-types component: Component, ...rest }) => ( <DefaultLayout {...rest} component={matchProps => ( <div className="row"> <div className="col col-3"> <Sidebar {...rest} /> </div> <div className="col col-9"> <Component {...matchProps} /> </div> </div> )} /> ); export default DefaultLayoutSidebar;