content: 
  import React from 'react';
  import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
  import { Grid, Alert, Button , Row , Col } from 'react-bootstrap';
  import { Meteor } from 'meteor/meteor';
  
  import PageEmailBuilder from '../../pages/PageEmailBuilder/PageEmailBuilder';
  import Authorized from '../../components/Authorized/Authorized';
  import AdminPageEmailBuilder from '../../pages/AdminPageEmailBuilder/AdminPageEmailBuilder';
  import CreateMailList from '../../pages/CreateMailList/CreateMailList';
  import SendBulkMail from '../../pages/SendBulkMail/SendBulkMail';
  import NewJournal from '../../components/NewJournal/NewJournal';
  import EditPaper from '../../components/EditPaper/EditPaper';
  import JournalTransactions from '../../pages/JournalTransactions/JournalTransactions';
  import AdminCheckPaymentStatus from '../../pages/AdminCheckPaymentStatus/AdminCheckPaymentStatus';
  import AddPaperArchive from '../../pages/JournalArchiveAddPaper/AddPaperPage';
  import ArchivePaperUpload from '../../pages/ArchivePaperUpload/ArchivePaperUpload';
  import AdminViewAllJournals from '../../pages/AdminViewAllJournals/AdminViewAllJournals';
  import AdminCreateJournalAccount from '../../pages/AdminCreateJournalAccount/AdminCreateJournalAccount';
  import CallForPapers from '../../pages/CallForPapers/CallForPapers';
  import AssignPaperReviewer from '../../pages/AssignPaperReviewer/AssignPaperReviewer';
  import TransactionReport from '../../pages/TransactionReport/TransactionReport';
  import PaperUploadPage from '../../pages/PaperUploadPage/PaperUploadPage';
  import MultiPagePaperForm from '../../pages/MultiPagePaperForm/MultiPagePaperForm';
  import EditorInChiefDashboard from '../../pages/EditorInChiefDashboard/EditorInChiefDashboard';
  import NewJournalPayment from '../../pages/NewJournalPayment/NewJournalPayment';
  import ReviewerDashboard from '../../pages/ReviewerDashboard/ReviewerDashboard';
  import WritePaperReview from '../../pages/WritePaperReview/WritePaperReview';
  import UploadedPapers from '../../pages/UploadedPapers/UploadedPapers';
  import ViewReviewPaper from '../../pages/ViewReviewPaper/ViewReviewPaper';
  import EditorViewReviewedPaper from '../../pages/EditorViewReviewedPaper/EditorViewReviewedPaper';
  import CorrectedPapers from '../../pages/CorrectedPapers/CorrectedPapers';
  import AuthorDashboard from '../../pages/AuthorDashboard/AuthorDashboard';
  import AuthorResubmitPaper from '../../pages/AuthorResubmitPaper/AuthorResubmitPaper';
  import PayPublicationFee from '../../pages/PayPublicationFee/PayPublicationFee';
  import ViewResubmittedPapers from '../../pages/ViewResubmittedPapers/ViewResubmittedPapers';
  import AddPaperToJournalEdition from '../../pages/AddPaperToJournalEdition/AddPaperToJournalEdition';
  import NewJournalEdition from '../../pages/NewJournalEdition/NewJournalEdition';
  import UploadPdfCopyPage from '../../pages/UploadPdfCopyPage/UploadPdfCopyPage';
  import UploadOnePdfPage from '../../pages/UploadOnePdfPage/UploadOnePdfPage';
  import UploadPdfCopyAdmin from '../../pages/UploadPdfCopyAdmin/UploadPdfCopyAdmin';
  import ManageJournal from '../../pages/ManageJournal/ManageJournal';
  import Profile from '../../pages/Profile/Profile';
  import Dashboard from '../../pages/Dashboard/Dashboard';
  import GeneratePaymentRRR from '../../pages/GeneratePaymentRRR/GeneratePaymentRRR';
  import EditorChiefViewAllUploadedPapers from '../../pages/EditorChiefViewAllUploadedPapers/EditorChiefViewAllUploadedPapers';
  import AdminSideNav from '../../components/AdminSideNav/AdminSideNav';
  import SimulateCertificateGeneration from '../../components/SimulateCertificateGeneration/SimulateCertificateGeneration';
  import NotFound from '../../pages/NotFound/NotFound';
  //import './LoginLayout.scss';
  
  const AuthorizedLayout = ({match , userId , ...rest}) => (
    
      <div className="loginLayout">
        <div className="loginLayoutContent">
          <div className="row">
            <div className="col-lg-3 col-md-3 col-sm-3">
              <AdminSideNav userId={userId} {...rest} />
            </div>
           
          
           <div className="col-lg-9 col-md-9 col-sm-9">
             <div>
             <Switch>
             
             
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" 
                userId={userId} exact  
                path={`${ match.path}/dashboard/assign_paper/:title/:_id/:journalID`} 
                component={AssignPaperReviewer} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" 
                userId={userId} exact  
                path={`${ match.path}/dashboard/generate_payment_rrr`} 
                component={GeneratePaymentRRR} {...rest} />
              
              {/*<Authorized roles={['admin', 'manager']} path={`${ props.match.path}/employees`} component={Employees} {...props} />*/}
  
             
             <Authorized allowedRoles={['editor' , 'super-admin']} group="editors" userId={userId} exact  
              path={`${ match.path}/dashboard/editors_home`} component={ReviewerDashboard} {...rest} />
  
              <Authorized allowedRoles={['reviewer' , 'super-admin']} group="editors" userId={userId} exact  
              path={`${ match.path}/dashboard/reviewers_home`} component={ReviewerDashboard}  {...rest} />
  
              <Authorized allowedRoles={['editor' , 'reviewer' , 'super-admin']} group="editors" userId={userId} exact  
              path={`${ match.path}/write_review/:paperId/:journalId`} component={WritePaperReview}  {...rest} />
  
            
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/review_uploaded_papers`} component={UploadedPapers}  {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/comment_on_reviewed_paper_details/:_id`} component={ViewReviewPaper} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/view_reviewed_paper_details/:_id`} component={EditorViewReviewedPaper}  {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/view_resubmitted_papers`} component={CorrectedPapers} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/resubmitted_paper_details/:title/:_id`} component={ViewResubmittedPapers} {...rest} />
  
  
              <Authorized allowedRoles={['journalowner', 'super-admin' ]} group="owners" userId={userId} exact  
              path={`${ match.path}/add_paper_journal_edition`} component={AddPaperToJournalEdition} {...rest} />
  
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/add_edit_new_journal_edition`} component={NewJournalEdition} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
                path={`${ match.path}/call_for_papers`} component={ CallForPapers } {...rest} />
  
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/upload/doc_to_pdf`} component={UploadPdfCopyPage} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/upload/doc_to_pdf/:paperId`} component={UploadOnePdfPage} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/manage_journal`} component={ManageJournal} {...rest} />
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path }/journal_financial_transactions`} component={ JournalTransactions } {...rest} />
  
            
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/archive/upload_paper/:paperId/:editionId`} component={ ArchivePaperUpload } {...rest} />
  
  
              <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/archive/paper_edit/:paperId/:editionId`} component={ EditPaper } {...rest} />
  
  
             <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/assign_paper_to_reviewer`} component={ EditorChiefViewAllUploadedPapers } {...rest} />
  
  
             <Authorized allowedRoles={['journalowner' , 'super-admin']} group="owners" userId={userId} exact  
              path={`${ match.path}/page_email_builder`} component={ PageEmailBuilder } {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/upload/approved_papers/doc_to_pdf`} component={UploadPdfCopyAdmin} {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/dashboard/new_journal`} component={NewJournal} {...rest} />
  
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/check_payment_status`} component={ AdminCheckPaymentStatus } {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/admin/create_journal_account`} component={  AdminCreateJournalAccount } {...rest} />
  
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/admin/journal_stats`} component={ AdminViewAllJournals } {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
              path={`${ match.path}/admin/email_template_builder`} component={ AdminPageEmailBuilder } {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
               path={`${ match.path}/create_mailing_list`} component={ CreateMailList } {...rest} />
  
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
               path={`${ match.path}/send_bulk_email`} component={ SendBulkMail } {...rest} />
              
              <Authorized allowedRoles={['super-admin']} group={Roles.GLOBAL_GROUP} userId={userId} exact  
               path={`${ match.path}/simulate_certificate_generation`} component={ SimulateCertificateGeneration } {...rest} />
              
              <Route component={NotFound} />
           </Switch>
             </div>
           </div>
           </div>
           </div>
        </div>
       
  )
  
  
  export default AuthorizedLayout;