
import React from 'react';
import Sidebar from './components/common/Sidebar';
import Header from './components/common/Header';

export default function Layout({title, children}){
  return (
    <div className="dashboardSec">
      <div className="mnuoverly" onClick={() => { document.body.classList.toggle('opensdebar') }}></div>
      <Sidebar />
      <div className="boardbody">
        <Header title={title} />
        
          {children}
         
      </div>
    </div>
  )
}
